Check that service is actually registered
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 21 Apr 2009 04:45:06 +0000 (05:45 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 21 Apr 2009 04:45:06 +0000 (05:45 +0100)
src/service.c

index d217441..b2d09a8 100644 (file)
@@ -144,6 +144,9 @@ static void state_changed(struct connman_service *service)
        DBusMessageIter entry;
        const char *str;
 
+       if (service->path == NULL)
+               return;
+
        str = state2string(service->state);
        if (str == NULL)
                return;