Merge "[SPIN] Add NULL check to prevent crash." into tizen
authortaesub kim <taesub.kim@samsung.com>
Mon, 13 Jun 2016 02:19:50 +0000 (19:19 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 13 Jun 2016 02:19:50 +0000 (19:19 -0700)
src/service.c

index db8953c..ca29119 100755 (executable)
@@ -5150,6 +5150,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);