summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-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 9e078713f94..4b05f3270b5 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.403 2017/03/08 14:55:21 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.404 2017/03/08 15:34:44 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -1100,11 +1100,11 @@ newlease:
if (!client->active->is_static && !seen)
TAILQ_INSERT_HEAD(&client->leases, client->active, next);
- client->state = S_BOUND;
-
/* Write out new leases file. */
rewrite_client_leases(ifi);
+ client->state = S_BOUND;
+
/* Set timeout to start the renewal process. */
set_timeout(client->active->renewal, state_bound, ifi);
}