Fix a bug in ble_l2cap_sig_extract_expired
Next should be updated to point at the previous element in the list for removal to work correctly.
diff --git a/nimble/host/src/ble_l2cap_sig.c b/nimble/host/src/ble_l2cap_sig.c
index 4245917..029e855 100644
--- a/nimble/host/src/ble_l2cap_sig.c
+++ b/nimble/host/src/ble_l2cap_sig.c
@@ -1905,9 +1905,10 @@
ble_hs_lock();
- prev = NULL;
+ next = NULL;
proc = STAILQ_FIRST(&ble_l2cap_sig_procs);
while (proc != NULL) {
+ prev = next;
next = STAILQ_NEXT(proc, next);
time_diff = proc->exp_os_ticks - now;