diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-13 14:29:13 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-13 14:29:13 +0000 |
commit | 37053daacb2152b4e8de6ab60705e7254df31df7 (patch) | |
tree | a4c34ce624380911b10e7399946bb330ec3f497b /avahi-daemon/dbus-protocol.c | |
parent | 0433169ea9c6906f31b1a78e9a118858dd776dad (diff) |
* handle AVAHI_LOOKUP_NO_ADDRESS over DBUS correctly
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@755 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon/dbus-protocol.c')
-rw-r--r-- | avahi-daemon/dbus-protocol.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/avahi-daemon/dbus-protocol.c b/avahi-daemon/dbus-protocol.c index 25a9e8e..bec97cd 100644 --- a/avahi-daemon/dbus-protocol.c +++ b/avahi-daemon/dbus-protocol.c @@ -1558,8 +1558,10 @@ static void async_service_resolver_callback( /* avahi_log_debug(__FILE__": [%s] Successfully resolved service <%s.%s.%s>", i->path, name, type, domain); */ - assert(a); - avahi_address_snprint(t, sizeof(t), a); + if (a) + avahi_address_snprint(t, sizeof(t), a); + else + t[0] = 0; if (!name) name = ""; |