artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91658a7
)
change "if (lp &&" to "if lp != NULL &&".
author
tb
<tb@openbsd.org>
Mon, 4 Dec 2017 15:00:03 +0000
(15:00 +0000)
committer
tb
<tb@openbsd.org>
Mon, 4 Dec 2017 15:00:03 +0000
(15:00 +0000)
pointed out by krw
sbin/dhclient/dhclient.c
patch
|
blob
|
history
diff --git
a/sbin/dhclient/dhclient.c
b/sbin/dhclient/dhclient.c
index
664ea2b
..
94a8560
100644
(file)
--- a/
sbin/dhclient/dhclient.c
+++ b/
sbin/dhclient/dhclient.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dhclient.c,v 1.53
3 2017/12/04 14:56:07
tb Exp $ */
+/* $OpenBSD: dhclient.c,v 1.53
4 2017/12/04 15:00:03
tb Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@
-2541,7
+2541,7
@@
get_recorded_lease(struct interface_info *ifi)
break;
}
- if (lp && lp->epoch == 0)
+ if (lp
!= NULL
&& lp->epoch == 0)
time(&lp->epoch);
return lp;