From: Roy Marples Date: Tue, 9 Jun 2020 19:36:22 +0000 (+0100) Subject: privsep: Fix bogus warnings without inet. X-Git-Tag: v9.1.2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b6a7cb1d0700ca404f58854e477aa00d64e97f9;p=thirdparty%2Fdhcpcd.git privsep: Fix bogus warnings without inet. --- diff --git a/src/privsep-root.c b/src/privsep-root.c index f3fc523c..00edd8a7 100644 --- a/src/privsep-root.c +++ b/src/privsep-root.c @@ -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