diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-02-08 08:22:32 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-02-08 08:22:32 +0000 |
commit | 909721a2ebba936d11d2792be176ebbfd07c67a7 (patch) | |
tree | b696de6752c3951a5d5ab956b8ef924134009774 /sbin/dhclient/dhclient.c | |
parent | 2e6cc7553940ad639f317a08b875503efa1a0390 (diff) |
Don't update first_sending in state_selecting() and thus
fix the accounting for the interval since we started the
process of getting a lease.
Fixes the 'no lease ... got lease' messaging at a minimum.
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 51522ad0687..d5c3ad5197f 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.560 2018/02/07 01:03:10 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.561 2018/02/08 08:22:31 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -786,8 +786,6 @@ state_selecting(struct interface_info *ifi) } ifi->destination.s_addr = INADDR_BROADCAST; - time(&ifi->first_sending); - ifi->interval = 0; /* |