Fix crash issue 38/313738/1
authorWootak Jung <wootak.jung@samsung.com>
Tue, 21 May 2024 02:52:31 +0000 (11:52 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 1 Jul 2024 09:49:53 +0000 (18:49 +0900)
commit44a3cca1e946a9d1d5f8e4e79ffb828c84d3e4d7
treeec85a1231fde75baf5f4af22196907c52b91cabe
parente3d4221d6b4374918867f3c49f00b1b54ed78ca3
Fix crash issue

0  0xaae6c8da in notify_io_destroy (data=0xac2cbcb0) at src/gatt-client.c:1698
1698            DBG("notify_io destroyed. length: %d", queue_length(client->chrc->notify_clients));
(gdb) info args
data = 0xac2cbcb0
(gdb) p client
$1 = (struct notify_client *) 0xac2cbcb0
(gdb) p *client
$2 = {chrc = 0x0, ref_count = 0, owner = 0x0, watch = 0, notify_id = 56}

$1 = (struct notify_client *) 0x55a1388d20
(gdb)
$2 = (struct notify_client *) 0x55a1388d20
(gdb) p *client
p *client
$3 = {chrc = 0x1, ref_count = 0, owner = 0x0, watch = 0, notify_id = 0}

Change-Id: Icb84e5995d7a2cd5ce1447d075a30ce1cc1a2f2f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/gatt-client.c