summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dispatch.c
diff options
context:
space:
mode:
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);
}