summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-02-24 16:53:19 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-02-24 16:53:19 +0000
commit08f6c5b345cb2f4579de05f685f34b6eceaef148 (patch)
tree071be7a71ddb0c59730ae2b987db6307be501ea1 /sbin/dhclient/dhclient.c
parent1a41f8dd852579b807c238bd0a09d042c0a4c8b7 (diff)
Complete deleting ifi->active before calling write_lease_db().
No functional change but a bit more obvious and shrinks upcoming diff.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c6
1 files changed, 3 insertions, 3 deletions
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 <henning@openbsd.org>
@@ -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);