diff options
-rw-r--r-- | sbin/dhclient/dhclient.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index df41c45c07c..9463af31dad 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.78 2005/08/07 01:35:11 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.79 2005/08/25 19:08:50 henning Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -2113,7 +2113,8 @@ check_option(struct client_lease *l, int option) if (!res_hnok(sbuf)) { warning("Bogus Host Name option %d: %s (%s)", option, sbuf, opbuf); - return (0); + l->options[option].len = 0; + free(l->options[option].data); } return (1); case DHO_PAD: |