]> git.meshlink.io Git - catta/commitdiff
Complete AVAHI_LOOKUP_NO_ADDRESS fix
authorJakub Stachowski <qbast@go2.pl>
Thu, 13 Oct 2005 14:42:00 +0000 (14:42 +0000)
committerJakub Stachowski <qbast@go2.pl>
Thu, 13 Oct 2005 14:42:00 +0000 (14:42 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@756 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/dbus-protocol.c

index bec97cda61e379a640e6826ad17b68f8f578a1c7..ce2152179525729973add5aa6de334cc01f6065a 100644 (file)
@@ -1568,7 +1568,10 @@ static void async_service_resolver_callback(
 
         i_interface = (int32_t) interface;
         i_protocol = (int32_t) protocol;
-        i_aprotocol = (int32_t) a->proto;
+        if (a) 
+           i_aprotocol = (int32_t) a->proto;
+       else 
+           i_aprotocol = AVAHI_PROTO_UNSPEC;
         u_flags = (uint32_t) flags;
 
         dbus_message_append_args(