summaryrefslogtreecommitdiffstats
path: root/avahi-daemon
diff options
context:
space:
mode:
authorJakub Stachowski <qbast@go2.pl>2005-10-13 14:42:00 +0000
committerJakub Stachowski <qbast@go2.pl>2005-10-13 14:42:00 +0000
commit7d9e6001da776dafdbfdbea0a3cb601f9f80d1b0 (patch)
tree3573bef053f2e98668ac45fe3db4264f06ae4cb6 /avahi-daemon
parent37053daacb2152b4e8de6ab60705e7254df31df7 (diff)
Complete AVAHI_LOOKUP_NO_ADDRESS fix
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@756 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon')
-rw-r--r--avahi-daemon/dbus-protocol.c5
1 files changed, 4 insertions, 1 deletions
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(