GATT: Fix crash in ccc_write_cb. 85/270385/2 accepted/tizen/unified/20220208.112116 submit/tizen/20220207.225310
authorAnuj Jain <anuj01.jain@samsung.com>
Fri, 28 Jan 2022 11:08:38 +0000 (16:38 +0530)
committerAnuj Jain <anuj01.jain@samsung.com>
Mon, 31 Jan 2022 06:38:16 +0000 (12:08 +0530)
commit68f16d32af7d3986eca160d6bc8014f0476ad54e
tree4f559b4ea507a4428d6080a9355c509fe4c87495
parent96cfc8727d3069dfc68388b89cb8fc680f45d7d1
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: I75316e67be6a1b941457066f05e17ddf2db8732d
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
src/gatt-database.c