changeset 5330:7b6f2daea002 draft

privsep: Fix bogus warnings without inet.
author Roy Marples <roy@marples.name>
date Tue, 09 Jun 2020 20:36:22 +0100
parents cc6b3545c52c
children d075e31eb148
files src/privsep-root.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/privsep-root.c	Tue Jun 09 19:33:23 2020 +0100
+++ b/src/privsep-root.c	Tue Jun 09 20:36:22 2020 +0100
@@ -659,14 +659,14 @@
 #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