]> git.meshlink.io Git - catta/commitdiff
* fix bug reported bei Sebastien Estienne: bogus assert whhen service resolving fails
authorLennart Poettering <lennart@poettering.net>
Sat, 30 Jul 2005 18:39:44 +0000 (18:39 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 30 Jul 2005 18:39:44 +0000 (18:39 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@204 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

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);