Skip to content

Commit b676d8a

Browse files
authored
Merge pull request #46 from levshutov/master
Fix interface selection
2 parents e37443a + 50f97a9 commit b676d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsdd2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static bool is_new_addr(struct nlmsghdr *nh)
520520

521521
if (ifindex && ifam->ifa_index != ifindex) {
522522
char buf[IFNAMSIZ];
523-
if (!if_indextoname(ifindex, buf) || strcmp(buf, ifname) != 0)
523+
if (!if_indextoname(ifam->ifa_index, buf) || strcmp(buf, ifname) != 0)
524524
return false;
525525
ifindex = ifam->ifa_index;
526526
}

0 commit comments

Comments
 (0)