summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-27 06:43:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-27 06:43:14 +0000
commit0a85834931a8455fb8201d6b31ea4a7c703248e0 (patch)
tree57489041f52c4b111fff63f743c1112fda7b6fec /sbin/dhclient
parenta0dbc34adc90aeacb26e57becc86026bc599f60e (diff)
backout unapproved diff
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 9463af31dad..a9ab6a9ec5a 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.79 2005/08/25 19:08:50 henning Exp $ */
+/* $OpenBSD: dhclient.c,v 1.80 2005/08/27 06:40:18 deraadt Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -2113,8 +2113,7 @@ check_option(struct client_lease *l, int option)
if (!res_hnok(sbuf)) {
warning("Bogus Host Name option %d: %s (%s)", option,
sbuf, opbuf);
- l->options[option].len = 0;
- free(l->options[option].data);
+ return (0);
}
return (1);
case DHO_PAD: