From: Jakub Stachowski Date: Thu, 13 Oct 2005 14:42:00 +0000 (+0000) Subject: Complete AVAHI_LOOKUP_NO_ADDRESS fix X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=7d9e6001da776dafdbfdbea0a3cb601f9f80d1b0;p=catta Complete AVAHI_LOOKUP_NO_ADDRESS fix git-svn-id: file:///home/lennart/svn/public/avahi/trunk@756 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/dbus-protocol.c b/avahi-daemon/dbus-protocol.c index bec97cd..ce21521 100644 --- a/avahi-daemon/dbus-protocol.c +++ b/avahi-daemon/dbus-protocol.c @@ -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(