diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-13 15:08:31 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-13 15:08:31 +0000 |
commit | 9b2a5e5954a331006e1e7bb56cccf7fff0b7d477 (patch) | |
tree | c39897d56085f0aad5cddc1ebb3d6b0bf5a0dc78 /avahi-client | |
parent | feae35a24a8d234ae5a4eb629cd09c905f74dc04 (diff) |
cleanup of adresss parsing on the client side
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@758 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client')
-rw-r--r-- | avahi-client/resolver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/avahi-client/resolver.c b/avahi-client/resolver.c index c51a3be..37965ce 100644 --- a/avahi-client/resolver.c +++ b/avahi-client/resolver.c @@ -140,12 +140,13 @@ DBusHandlerResult avahi_service_resolver_event (AvahiClient *client, AvahiResolv dbus_message_iter_get_basic(&iter, &flags); assert(address); - avahi_address_parse(address, (AvahiProtocol) aprotocol, &a); if (address[0] == 0) address = NULL; + else + avahi_address_parse(address, (AvahiProtocol) aprotocol, &a); - r->callback(r, (AvahiIfIndex) interface, (AvahiProtocol) protocol, AVAHI_RESOLVER_FOUND, name, type, domain, host, &a, port, strlst, (AvahiLookupResultFlags) flags, r->userdata); + r->callback(r, (AvahiIfIndex) interface, (AvahiProtocol) protocol, AVAHI_RESOLVER_FOUND, name, type, domain, host, address ? &a : NULL, port, strlst, (AvahiLookupResultFlags) flags, r->userdata); avahi_string_list_free(strlst); break; |