Bluetooth: host: missing NULL
check in bt_le_create_conn_cancel
#85301
Labels
area: Bluetooth Host
Bluetooth Host (excluding BR/EDR)
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
Describe the bug
Due to a missing
NULL
check inbt_le_create_conn_cancel
aNULL
pointer can be provided tobt_hci_cmd_state_set_init
, causing a fault.zephyr/subsys/bluetooth/host/hci_core.c
Lines 860 to 862 in b6c8212
Expected behavior
Return value of
bt_hci_cmd_create
should be checked before use.Impact
Program faults
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: