From: krw Date: Wed, 24 Feb 2021 16:53:18 +0000 (+0000) Subject: Complete deleting ifi->active before calling write_lease_db(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aba87e0a09f2110c637bfbd4d3598643fa11f880;p=openbsd Complete deleting ifi->active before calling write_lease_db(). No functional change but a bit more obvious and shrinks upcoming diff. --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 68567dbd5dd..2104d318a4e 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.702 2021/02/24 16:36:47 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.703 2021/02/24 16:53:18 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -2744,10 +2744,10 @@ release_lease(struct interface_info *ifi) imsg_flush(unpriv_ibuf); TAILQ_REMOVE(&ifi->lease_db, ifi->active, next); - write_lease_db(&ifi->lease_db); - free_client_lease(ifi->active); ifi->active = NULL; + write_lease_db(&ifi->lease_db); + free(ifi->configured); ifi->configured = NULL; free(ifi->unwind_info);