Skip to content
Commit c5623c64 authored by Théo Battrel's avatar Théo Battrel Committed by Anas Nashif
Browse files

Bluetooth: Host: Check that `conn` is not NULL



In `gatt.c`, the function `bt_gatt_ccc_cfg_conn_lookup()` was not
checking that `conn` was not NULL. That leaded to a NULL pointer
dereferences later in `bt_conn_is_peer_addr_le`.

Fix by checking that `conn` is not NULL.

Signed-off-by: default avatarThéo Battrel <theo.battrel@nordicsemi.no>
parent 23b3cae1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment