diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-10-26 15:42:05 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-10-26 15:42:05 +0000 |
commit | 409572c2e63165f157d2e3990608dfc40dc2356b (patch) | |
tree | 64c1a2a5012da03fc9633a263d261bb2f8a44537 /sbin/dhclient | |
parent | f0403a0c96c0bed6931b28b6d5423fe35c1f5aa2 (diff) |
put the 100% right r1.79 back in, that is still as right as it was the first
time. dale just had the same problem and made me look again.
Diffstat (limited to 'sbin/dhclient')
-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 a9ab6a9ec5a..06c71dd2f4d 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.80 2005/08/27 06:40:18 deraadt Exp $ */ +/* $OpenBSD: dhclient.c,v 1.81 2005/10/26 15:42:04 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: |