summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2013-01-02 01:06:57 +0000
committerkrw <krw@openbsd.org>2013-01-02 01:06:57 +0000
commitb51c18487451d43290f1f708113f500b9d78f0ed (patch)
treecb75de2e326a1afa7371096cf4a50358e9bf99f8
parentcorrect format description for SSH_AGENTC_ADD_RSA_ID_CONSTRAINED (diff)
downloadwireguard-openbsd-b51c18487451d43290f1f708113f500b9d78f0ed.tar.xz
wireguard-openbsd-b51c18487451d43290f1f708113f500b9d78f0ed.zip
Delete misleading comment and a pointless check of !ifi. Since ifi
is either successfully calloc'd or dhclient dies early.
-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