diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-08-25 19:08:51 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-08-25 19:08:51 +0000 |
commit | b924130f7d0fb9ba79734a11afcf424c38457fe5 (patch) | |
tree | 22cc38ad8d0f2cb2913c40e51a1e1a4efbaacf41 /sbin | |
parent | a9f957dc9fbd30ec91cd063eb9977ee496b9f48e (diff) |
when we get an invalid hostname in an option, bitching a moaning is ok,
but there is no point in refusing the lease based on that. so bitch and
moan and ignore that option but accept the lease.
yes, customer networks are sometimes interesting...
ok millert krw beck
Diffstat (limited to 'sbin')
-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: |