From 68b133417be8f2f49c3aadeb0ba104b63a0efe66 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 31 Mar 2022 00:31:15 +0900 Subject: [PATCH] [net] Fix some logic precedence errors --- libs/net/nm/net_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/net/nm/net_udp.c b/libs/net/nm/net_udp.c index ebc49a886..13044d0c3 100644 --- a/libs/net/nm/net_udp.c +++ b/libs/net/nm/net_udp.c @@ -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;