artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c099a50
)
Allow familiar idiom free_client_lease(NULL).
author
krw
<krw@openbsd.org>
Wed, 21 Jun 2017 12:37:24 +0000
(12:37 +0000)
committer
krw
<krw@openbsd.org>
Wed, 21 Jun 2017 12:37:24 +0000
(12:37 +0000)
sbin/dhclient/dhclient.c
patch
|
blob
|
history
diff --git
a/sbin/dhclient/dhclient.c
b/sbin/dhclient/dhclient.c
index
1715dd3
..
440d87a
100644
(file)
--- a/
sbin/dhclient/dhclient.c
+++ b/
sbin/dhclient/dhclient.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dhclient.c,v 1.4
39 2017/06/19 19:28:35
krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.4
40 2017/06/21 12:37:24
krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@
-1742,7
+1742,7
@@
free_client_lease(struct client_lease *lease)
int i;
/* Static leases are forever. */
- if (lease->is_static)
+ if (lease
== NULL || lease
->is_static)
return;
free(lease->server_name);