Skip to content

Commit

Permalink
Merge pull request #46 from levshutov/master
Browse files Browse the repository at this point in the history
Fix interface selection
  • Loading branch information
Andy2244 committed Dec 20, 2023
2 parents e37443a + 50f97a9 commit b676d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsdd2.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ static bool is_new_addr(struct nlmsghdr *nh)

if (ifindex && ifam->ifa_index != ifindex) {
char buf[IFNAMSIZ];
if (!if_indextoname(ifindex, buf) || strcmp(buf, ifname) != 0)
if (!if_indextoname(ifam->ifa_index, buf) || strcmp(buf, ifname) != 0)
return false;
ifindex = ifam->ifa_index;
}
Expand Down

0 comments on commit b676d8a

Please sign in to comment.