From 9aab4e08c0191f67fe3e29a8e15144cbf1007932 Mon Sep 17 00:00:00 2001 From: krw Date: Wed, 12 Apr 2017 14:08:15 +0000 Subject: [PATCH] RTM_PROTO3 messages should not trigger a resolv.conf check. --- sbin/dhclient/dhclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 8589f23fa18..4013624d895 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.414 2017/04/11 13:59:27 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.415 2017/04/12 14:08:15 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -260,13 +260,13 @@ routehandler(struct interface_info *ifi) if ((rtm->rtm_flags & RTF_PROTO3) != 0) { if (rtm->rtm_seq == (int32_t)client->xid) { client->flags |= IN_CHARGE; - goto done; } else if ((client->flags & IN_CHARGE) != 0) { rslt = asprintf(&errmsg, "yielding " "responsibility for %s", ifi->name); goto die; } + goto done; } break; case RTM_NEWADDR: -- 2.20.1