Skip to content

Commit

Permalink
Fix reversed IFA_LOCAL and IFA_ADDRESS checks. (Bug: #355)
Browse files Browse the repository at this point in the history
  • Loading branch information
lathiat committed Dec 1, 2014
1 parent a951c3f commit 8b3f8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avahi-core/iface-linux.c
Expand Up @@ -204,7 +204,7 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat

switch(a->rta_type) {

case IFA_ADDRESS:
case IFA_LOCAL:

if ((rlocal.proto == AVAHI_PROTO_INET6 && RTA_PAYLOAD(a) != 16) ||
(rlocal.proto == AVAHI_PROTO_INET && RTA_PAYLOAD(a) != 4))
Expand All @@ -215,7 +215,7 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat

break;

case IFA_LOCAL:
case IFA_ADDRESS:

/* Fill in local address data. Usually this is
* preferable over IFA_ADDRESS if both are set,
Expand Down

0 comments on commit 8b3f8e4

Please sign in to comment.