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:
Łukasz Rymanowski
2019-10-02 03:51:51 -05:00
parent 2307c1f5a5
commit f6d05294af
+1
View File
@@ -286,6 +286,7 @@ ble_l2cap_sig_proc_extract(uint16_t conn_handle, uint8_t op,
}
break;
}
prev = proc;
}
ble_hs_unlock();