]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Fix bogus warnings without inet.
authorRoy Marples <roy@marples.name>
Tue, 9 Jun 2020 19:36:22 +0000 (20:36 +0100)
committerRoy Marples <roy@marples.name>
Tue, 9 Jun 2020 19:36:22 +0000 (20:36 +0100)
src/privsep-root.c

index f3fc523c2c153060211cac7d10ea105f3285a571..00edd8a7ea36ef1a2f652c165183c9cf7686f6bd 100644 (file)
@@ -659,14 +659,14 @@ ps_root_startcb(void *arg)
 #ifdef INET6
        if (ctx->options & DHCPCD_IPV6) {
                ctx->nd_fd = ipv6nd_open(false);
-               if (ctx->udp_wfd == -1)
+               if (ctx->nd_fd == -1)
                        logerr("%s: ipv6nd_open", __func__);
        }
 #endif
 #ifdef DHCP6
        if (ctx->options & DHCPCD_IPV6) {
                ctx->dhcp6_wfd = dhcp6_openraw();
-               if (ctx->udp_wfd == -1)
+               if (ctx->dhcp6_wfd == -1)
                        logerr("%s: dhcp6_openraw", __func__);
        }
 #endif