Diff between 6ae44c74aaf93468ddc626a02b8f0420a808b13e and 857d9b96b38401ce5666172ddea115d37ad6af70
Changed Files
| File | Additions | Deletions | Status |
| src/shared/gatt-client.c | +3 | -0 | modified |
Full Patch
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index f0499cc..9ffc10b 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -3809,6 +3809,9 @@ bool bt_gatt_client_idle_unregister(struct bt_gatt_client *client,
{
struct idle_cb *idle = UINT_TO_PTR(id);
+ if (!client || !id)
+ return false;
+
if (queue_remove(client->idle_cbs, idle)) {
idle_destroy(idle);
return true;