artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a4417
)
No need to get time() twice. Just use the already
author
krw
<krw@openbsd.org>
Wed, 24 Feb 2021 16:36:47 +0000
(16:36 +0000)
committer
krw
<krw@openbsd.org>
Wed, 24 Feb 2021 16:36:47 +0000
(16:36 +0000)
obtained cur_time to initialize a missing lease->epoch.
sbin/dhclient/dhclient.c
patch
|
blob
|
history
diff --git
a/sbin/dhclient/dhclient.c
b/sbin/dhclient/dhclient.c
index
b7f9ff0
..
68567db
100644
(file)
--- a/
sbin/dhclient/dhclient.c
+++ b/
sbin/dhclient/dhclient.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dhclient.c,v 1.70
1 2021/02/24 16:27:05
krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.70
2 2021/02/24 16:36:47
krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@
-2587,7
+2587,7
@@
get_recorded_lease(struct interface_info *ifi)
}
if (lp != NULL && lp->epoch == 0)
-
time(&lp->epoch)
;
+
lp->epoch = cur_time
;
return lp;
}