summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-01-02 01:06:58 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-01-02 01:06:58 +0000
commit2d02c708d1e0592d8bd7b03399ac410b6c30ba96 (patch)
tree9b5281ab644fc4402e2e9976384d76a8abf45864 /sbin/dhclient
parent37ff429e88542d0a7010c9f40eed315127e823e5 (diff)
Delete misleading comment and a pointless check of !ifi. Since ifi
is either successfully calloc'd or dhclient dies early.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/clparse.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c
index be1e3380e24..b0ef57f2607 100644
--- a/sbin/dhclient/clparse.c
+++ b/sbin/dhclient/clparse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clparse.c,v 1.50 2012/12/04 19:24:02 krw Exp $ */
+/* $OpenBSD: clparse.c,v 1.51 2013/01/02 01:06:57 krw Exp $ */
/* Parser for dhclient config and lease files... */
@@ -443,14 +443,6 @@ parse_client_lease_statement(FILE *cfile, int is_static)
} while (1);
token = next_token(NULL, cfile);
- /* If the lease declaration didn't include an interface
- * declaration that we recognized, it's of no use to us.
- */
- if (!ifi) {
- free_client_lease(lease);
- return;
- }
-
/*
* The new lease may supersede a lease that's not the active
* lease but is still on the lease list, so scan the lease list