]> git.meshlink.io Git - catta/commitdiff
reenable record updating using AVAHI_PUBLISH_UPDATE
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Jan 2006 00:45:39 +0000 (00:45 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 23 Jan 2006 00:45:39 +0000 (00:45 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1104 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/entry.c

index 5baaf4096db1b69a17f547d374e1516ef4a09f15..81ce1cd2ccd555a39e5e914b963cdf0824cb686b 100644 (file)
@@ -216,7 +216,10 @@ static AvahiEntry * server_add_internal(
     transport_flags_from_domain(s, &flags, r->key->name);
     AVAHI_CHECK_VALIDITY_RETURN_NULL(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED);
     AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !s->config.disable_publishing, AVAHI_ERR_NOT_PERMITTED);
-    AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !g || (g->state != AVAHI_ENTRY_GROUP_ESTABLISHED && g->state != AVAHI_ENTRY_GROUP_REGISTERING), AVAHI_ERR_BAD_STATE);
+    AVAHI_CHECK_VALIDITY_RETURN_NULL(s,
+                                     !g ||
+                                     (g->state != AVAHI_ENTRY_GROUP_ESTABLISHED && g->state != AVAHI_ENTRY_GROUP_REGISTERING) ||
+                                     (flags & AVAHI_PUBLISH_UPDATE), AVAHI_ERR_BAD_STATE);
     
     if (flags & AVAHI_PUBLISH_UPDATE) {
         AvahiRecord *old_record;