Update if.c (#144)
This commit is contained in:
parent
f9224f3edd
commit
7263d107c8
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ static bool if_getname_handler(const char *ifname, const struct sa *sa,
|
|||
if (ife->af != sa_af(sa))
|
||||
return false;
|
||||
|
||||
if (0 == sa_cmp(sa, ife->ip, SA_ADDR)) {
|
||||
if (sa_cmp(sa, ife->ip, SA_ADDR)) {
|
||||
str_ncpy(ife->ifname, ifname, ife->sz);
|
||||
ife->found = true;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue