summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2013-02-01 20:46:05 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2013-02-01 20:46:05 +0000
commit5ff190fc35e248d915750133c271ea3387dba062 (patch)
tree06efb75bd58664cf09d33bf3a4e5558c573ddc60 /sbin
parenta2dac98b7d878918569ccbbdb46e8315c60a543c (diff)
always initialize cur_time; found by llvm
ok krw@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/dhclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 881d7ef222d..3a06afa7b2a 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.220 2013/02/01 20:07:30 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.221 2013/02/01 20:46:04 florian Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -1148,6 +1148,7 @@ state_panic(void)
struct client_lease *lp;
time_t cur_time;
+ time(&cur_time);
note("No DHCPOFFERS received.");
/* We may not have an active lease, but we may have some
@@ -1156,7 +1157,6 @@ state_panic(void)
goto activate_next;
/* Run through the list of leases and see if one can be used. */
- time(&cur_time);
while (client->active) {
if (client->active->expiry > cur_time) {
note("Trying recorded lease %s",