mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
[net] Fix some logic precedence errors
This commit is contained in:
parent
78089a0e99
commit
68b133417b
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ get_iface_list (int sock)
|
|||
if (getifaddrs (&ifa_head) < 0)
|
||||
goto no_ifaddrs;
|
||||
for (ifa = ifa_head; ifa; ifa = ifa->ifa_next) {
|
||||
if (!ifa->ifa_flags & IFF_UP)
|
||||
if (!(ifa->ifa_flags & IFF_UP))
|
||||
continue;
|
||||
if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET)
|
||||
continue;
|
||||
|
@ -208,7 +208,7 @@ get_iface_list (int sock)
|
|||
for (ifa = ifa_head; ifa; ifa = ifa->ifa_next) {
|
||||
struct sockaddr_in *sa;
|
||||
|
||||
if (!ifa->ifa_flags & IFF_UP)
|
||||
if (!(ifa->ifa_flags & IFF_UP))
|
||||
continue;
|
||||
if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue