]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/dbus-protocol.c
* fix bug reported bei Sebastien Estienne: bogus assert whhen service resolving fails
[catta] / avahi-daemon / dbus-protocol.c
index 65c8e46cdc30260d413c90f20faca67e403c9794..0631f729f92d2656d4bf50c1efe2ef17020aad7d 100644 (file)
@@ -868,7 +868,6 @@ static void service_resolver_callback(
     DBusMessage *reply;
     
     g_assert(r);
-    g_assert(host_name);
     g_assert(i);
 
     if (event == AVAHI_RESOLVER_FOUND) {
@@ -878,6 +877,8 @@ static void service_resolver_callback(
         guint n, j;
         AvahiStringList *p;
 
+        g_assert(host_name);
+        
         g_assert(a);
         avahi_address_snprint(t, sizeof(t), a);