From: krw Date: Thu, 7 Dec 2017 19:17:13 +0000 (+0000) Subject: Set ifi->offer to NULL after free'ing it. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ded04c6f634f350fa869c99285f394c05ddb21db;p=openbsd Set ifi->offer to NULL after free'ing it. --- 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); }