summaryrefslogtreecommitdiff
path: root/sbin/dhclient/privsep.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-07-02 09:11:14 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-07-02 09:11:14 +0000
commit5a580874d3af2dea88a2a34d66a29c1adb659cf3 (patch)
tree3a5c368d7acd78d60fe44324938d52efa802aa2f /sbin/dhclient/privsep.c
parentc9fb07b914edd3feee41346db0ac9469d04b8e2a (diff)
Unbreak tree by putting revised resolv_conf_priority() declaration in
correct place and passing the invocation the correct parameters. Noticed by & initial diff from matthieu@
Diffstat (limited to 'sbin/dhclient/privsep.c')
-rw-r--r--sbin/dhclient/privsep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c
index 99ec2b49000..09ffe76375f 100644
--- a/sbin/dhclient/privsep.c
+++ b/sbin/dhclient/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.53 2017/07/01 23:27:56 krw Exp $ */
+/* $OpenBSD: privsep.c,v 1.54 2017/07/02 09:11:13 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -95,7 +95,7 @@ dispatch_imsg(struct interface_info *ifi, int ioctlfd, int routefd,
case IMSG_WRITE_RESOLV_CONF:
if (imsg.hdr.len <= IMSG_HEADER_SIZE)
log_warnx("short IMSG_WRITE_RESOLV_CONF");
- else if (resolv_conf_priority(ifi->rdomain))
+ else if (resolv_conf_priority(ifi->rdomain, routefd))
priv_write_resolv_conf(imsg.data,
imsg.hdr.len - IMSG_HEADER_SIZE);
break;