mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Fix previous commit: both flags must be set.
This commit is contained in:
parent
d03426e619
commit
bfd13d9679
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254062
@ -473,7 +473,8 @@ static int wpa_driver_wired_get_ifstatus(const char *ifname, int *status)
|
||||
return -1;
|
||||
}
|
||||
close(s);
|
||||
*status = ifmr.ifm_status & (IFM_ACTIVE|IFM_AVALID);
|
||||
*status = (ifmr.ifm_status & (IFM_ACTIVE|IFM_AVALID)) ==
|
||||
(IFM_ACTIVE|IFM_AVALID);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user