diff options
Diffstat (limited to 'avahi-core')
-rw-r--r-- | avahi-core/entry.c | 13 | ||||
-rw-r--r-- | avahi-core/resolve-address.c | 2 |
2 files changed, 2 insertions, 13 deletions
diff --git a/avahi-core/entry.c b/avahi-core/entry.c index e4008bc..23ab5e0 100644 --- a/avahi-core/entry.c +++ b/avahi-core/entry.c @@ -428,18 +428,7 @@ int avahi_server_add_address( if (!(flags & AVAHI_PUBLISH_NO_REVERSE)) { char *reverse; - if (!(reverse = avahi_reverse_lookup_name_ipv6_arpa(&a->data.ipv6))) { - ret = avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); - goto fail; - } - - ret = avahi_server_add_ptr(s, g, interface, protocol, flags | AVAHI_PUBLISH_UNIQUE, AVAHI_DEFAULT_TTL_HOST_NAME, reverse, name); - avahi_free(reverse); - - if (ret < 0) - goto fail; - - if (!(reverse = avahi_reverse_lookup_name_ipv6_int(&a->data.ipv6))) { + if (!(reverse = avahi_reverse_lookup_name_ipv6(&a->data.ipv6))) { ret = avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); goto fail; } diff --git a/avahi-core/resolve-address.c b/avahi-core/resolve-address.c index 94e07f5..08168b6 100644 --- a/avahi-core/resolve-address.c +++ b/avahi-core/resolve-address.c @@ -205,7 +205,7 @@ AvahiSAddressResolver *avahi_s_address_resolver_new( if (address->proto == AVAHI_PROTO_INET) n = avahi_reverse_lookup_name_ipv4(&address->data.ipv4); else - n = avahi_reverse_lookup_name_ipv6_arpa(&address->data.ipv6); + n = avahi_reverse_lookup_name_ipv6(&address->data.ipv6); if (!n) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); |