summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dispatch.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-02-16 18:42:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-02-16 18:42:08 +0000
commite407c55790bfdfaf88424e897d60c719d70260f6 (patch)
tree49a0504ba07e16c069ae4aa1808a0ee8a2a5dfc4 /sbin/dhclient/dispatch.c
parent9874988c4cf497aac492445d1bfc38ff9b7db245 (diff)
SSID/LLADDR/LINK_STATE_IS_UP changes must discard the previous
proposal to ensure the new lease is applied to the interface.
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r--sbin/dhclient/dispatch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index cd63d0194fe..0dbb2bf5da4 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.163 2019/01/19 21:07:13 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.164 2019/02/16 18:42:07 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -92,6 +92,8 @@ dispatch(struct interface_info *ifi, int routefd)
if (quit == RESTART) {
quit = 0;
time(&ifi->startup_time);
+ free(ifi->configured);
+ ifi->configured = NULL;
ifi->state = S_PREBOOT;
state_preboot(ifi);
}