This patch fixes SVACE issue. 90/315290/2 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x tizen accepted/tizen/unified/20240910.112411 accepted/tizen/unified/dev/20240913.055611 accepted/tizen/unified/x/20240911.015715
authorSameer Kumar <sameer.kumar@samsung.com>
Mon, 29 Jul 2024 11:41:19 +0000 (17:11 +0530)
committerSameer Kumar <sameer.kumar@samsung.com>
Tue, 30 Jul 2024 05:59:20 +0000 (11:29 +0530)
Issue ID: 224707

Change-Id: I15d9a20830d2b76214e8847869673715e2c29c34
Signed-off-by: Sameer Kumar <sameer.kumar@samsung.com>
src/gatt-client.c

index ca92f26..5b06938 100644 (file)
@@ -1471,7 +1471,7 @@ static void notify_client_free(struct notify_client *client)
                                                        client->notify_id);
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-       if (client->chrc->notify_io->data == client)
+       if (client->chrc->notify_io && client->chrc->notify_io->data == client)
                client->chrc->notify_io->data = NULL;
 #endif
        free(client->owner);