GATT: Fix crash in ccc_write_cb. 81/270681/1
authorAnuj Jain <anuj01.jain@samsung.com>
Fri, 28 Jan 2022 11:08:38 +0000 (16:38 +0530)
committerdh79pyun <dh79.pyun@samsung.com>
Mon, 7 Feb 2022 22:53:41 +0000 (07:53 +0900)
commit86a2ac8a7f3817eeb67e2d98e6f95f395bce98f3
tree392f82926e2ae89bcf4a29eeff7255df6b6635a9
parentaf632833a6a13e3495e8f0e6356964c376e54510
GATT: Fix crash in ccc_write_cb.

When gatt client is disconnected after notification enable,
The pending_op becomes null which when used in stop_notify_setup
causes bluetoothd to crash.
This patch will fix the same.

Change-Id: I34ab72af291763fe6d7ae50ae517dc71ebf441e8
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
src/gatt-database.c