From: krw Date: Sun, 11 Feb 2018 22:00:19 +0000 (+0000) Subject: Ooops. After getting a NAK in response to a renewal REQUEST, we delete X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0d5c1df11b85299573a7b90afc4f687ceff73e38;p=openbsd 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! --- 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);