summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-12-07 19:17:14 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-12-07 19:17:14 +0000
commit2b432af727a26af08717f7c33445e80dab37dbd5 (patch)
treeedc4a6f1516da95c2fbc23480d844b898c6f2a09 /sbin/dhclient
parent60f2f45f59f944610c2194f82266908921985ebb (diff)
Set ifi->offer to NULL after free'ing it.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index e2045a45974..4de0fda2b5a 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.537 2017/12/07 19:03:15 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.538 2017/12/07 19:17:13 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -854,6 +854,7 @@ state_selecting(struct interface_info *ifi)
/* Toss the lease we picked - we'll get it back in a DHCPACK. */
free_client_lease(ifi->offer);
+ ifi->offer = NULL;
send_request(ifi);
}