mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-02 18:42:47 +00:00
nimble/l2cap: Fix use on uninitialized value
X-Original-Commit: 60cf149ff041ffced8b0729928fa17149b2a72a8
This commit is contained in:
@@ -349,9 +349,7 @@ ble_l2cap_coc_continue_tx(struct ble_l2cap_chan *chan)
|
||||
/* Prepare packet */
|
||||
txom = ble_hs_mbuf_l2cap_pkt();
|
||||
if (!txom) {
|
||||
BLE_HS_LOG(DEBUG, "Could not prepare l2cap packet len %d, err=%d",
|
||||
len, rc);
|
||||
|
||||
BLE_HS_LOG(DEBUG, "Could not prepare l2cap packet len %d", len);
|
||||
rc = BLE_HS_ENOMEM;
|
||||
goto failed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user