summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-09 20:36:22 +0100
committerRoy Marples <roy@marples.name>2020-06-09 20:36:22 +0100
commit6b6a7cb1d0700ca404f58854e477aa00d64e97f9 (patch)
tree1d3ab74c5ea486b557a62c8e4179eb40276a323c /src/privsep-root.c
parentaa5f136a13b2d9371e4b56e52b93fef480816e1c (diff)
downloaddhcpcd-6b6a7cb1d0700ca404f58854e477aa00d64e97f9.tar.xz
privsep: Fix bogus warnings without inet.
Diffstat (limited to 'src/privsep-root.c')
-rw-r--r--src/privsep-root.c4
1 files 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