From 7d9e6001da776dafdbfdbea0a3cb601f9f80d1b0 Mon Sep 17 00:00:00 2001 From: Jakub Stachowski Date: Thu, 13 Oct 2005 14:42:00 +0000 Subject: Complete AVAHI_LOOKUP_NO_ADDRESS fix git-svn-id: file:///home/lennart/svn/public/avahi/trunk@756 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/dbus-protocol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'avahi-daemon/dbus-protocol.c') 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( -- cgit