From 82593a3cc7aa1c55397ce07f32c1c99991e6339b Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 11 Feb 2018 22:00:20 +0000 Subject: Ooops. After getting a NAK in response to a renewal REQUEST, we delete the interface's address and thus the cached configuration data becomes invalid and must be discarded. Issue found & fix tested by Christer Solskogen. Thanks! --- sbin/dhclient/dhclient.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sbin/dhclient/dhclient.c') diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 608b4176763..df3118a6765 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.563 2018/02/11 04:16:58 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.564 2018/02/11 22:00:19 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -932,6 +932,8 @@ dhcpnak(struct interface_info *ifi, const char *src) free_client_lease(ifi->active); ifi->active = NULL; + free(ifi->configured); + ifi->configured = NULL; /* Stop sending DHCPREQUEST packets. */ cancel_timeout(ifi); -- cgit v1.2.3