[SPIN] Add NULL check to prevent crash. 78/73978/1
authorNiraj Kumar Goit <niraj.g@samsung.com>
Fri, 10 Jun 2016 13:50:24 +0000 (19:20 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Fri, 10 Jun 2016 13:50:24 +0000 (19:20 +0530)
Change-Id: I220440e73661004a61b8803d335c8c7a7ae11f6b
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/service.c

index 5dab82c..11a510d 100755 (executable)
@@ -5144,6 +5144,10 @@ static void service_schedule_removed(struct connman_service *service)
 
 static bool allow_property_changed(struct connman_service *service)
 {
+#if defined TIZEN_EXT
+       if (service->path == NULL)
+               return FALSE;
+#endif
        if (g_hash_table_lookup_extended(services_notify->add, service->path,
                                        NULL, NULL)) {
                DBG("no property updates for service %p", service);