summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-12-15 03:15:48 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-12-15 03:15:48 +0000
commitaf86f5e69cca2184cf28803ef9197c7d6650c69a (patch)
tree2a735ab9dee7bbbe421e42e7886ecee3325b0cc7 /sbin/dhclient/dhclient.c
parent7901d3e55d79b51911aabd1ee3aa3124093a1a74 (diff)
Update timestamps in 'effective' lease before printing out the
lease.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r--sbin/dhclient/dhclient.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 17c50bbaecd..182472d39a8 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.278 2013/12/14 05:07:09 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.279 2013/12/15 03:15:47 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -844,6 +844,10 @@ bind_lease(void)
if (client->new->rebind < cur_time)
client->new->rebind = TIME_MAX;
+ lease->expiry = client->new->expiry;
+ lease->renewal = client->new->renewal;
+ lease->rebind = client->new->rebind;
+
/*
* A duplicate lease once we are responsible & S_RENEWING means we don't
* need to change the interface, routing table or resolv.conf.