summaryrefslogtreecommitdiffstats
path: root/avahi-core/resolve-address.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/resolve-address.c')
-rw-r--r--avahi-core/resolve-address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-core/resolve-address.c b/avahi-core/resolve-address.c
index 18c862c..d5fe743 100644
--- a/avahi-core/resolve-address.c
+++ b/avahi-core/resolve-address.c
@@ -141,9 +141,9 @@ AvahiSAddressResolver *avahi_s_address_resolver_new(AvahiServer *server, AvahiIf
assert(address);
assert(callback);
- assert(address->family == AVAHI_PROTO_INET || address->family == AVAHI_PROTO_INET6);
+ assert(address->proto == AVAHI_PROTO_INET || address->proto == AVAHI_PROTO_INET6);
- if (address->family == AVAHI_PROTO_INET)
+ 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);