This patch fixes SVACE issue. 90/315290/2 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.235250 accepted/tizen/unified/20240910.112411 accepted/tizen/unified/dev/20240913.055611 accepted/tizen/unified/toolchain/20241004.102205 accepted/tizen/unified/x/20240911.015715 accepted/tizen/unified/x/asan/20241014.000612 tizen_9.0_m2_release
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);