From 6b6a7cb1d0700ca404f58854e477aa00d64e97f9 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 9 Jun 2020 20:36:22 +0100 Subject: [PATCH] privsep: Fix bogus warnings without inet. --- src/privsep-root.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2