From ded04c6f634f350fa869c99285f394c05ddb21db Mon Sep 17 00:00:00 2001 From: krw Date: Thu, 7 Dec 2017 19:17:13 +0000 Subject: [PATCH] Set ifi->offer to NULL after free'ing it. --- sbin/dhclient/dhclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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); } -- 2.20.1