]> git.meshlink.io Git - catta/blobdiff - examples/client-publish-service.c
* Fix specifying priviliged access group (Closes: #85)
[catta] / examples / client-publish-service.c
index 66a59de04fc803a27758e80110f275e9dfadf80e..94dcd1e9b060cb5bad69fd522af494666eeea6c3 100644 (file)
@@ -44,7 +44,7 @@ static char *name = NULL;
 static void create_services(AvahiClient *c);
 
 static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) {
-    assert(g == group);
+    assert(g == group || group == NULL);
 
     /* Called whenever the entry group state changes */