mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-03 11:02:46 +00:00
nimble/l2cap: Fix extracting proc from the list
When we were creating more than one channel at the time (we are doing it in the auto pts test enviroment), we will end up with removing from the list not that proc which we want as prev is always set to NULL wich means, we always remove HEAD of the list
This commit is contained in:
@@ -286,6 +286,7 @@ ble_l2cap_sig_proc_extract(uint16_t conn_handle, uint8_t op,
|
||||
}
|
||||
break;
|
||||
}
|
||||
prev = proc;
|
||||
}
|
||||
|
||||
ble_hs_unlock();
|
||||
|
||||
Reference in New Issue
Block a user