diff options
author | Ted Lemon <source@isc.org> | 1997-12-06 04:04:07 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-12-06 04:04:07 +0000 |
commit | 357708da5a4485dedc54216448e4aff8a4564687 (patch) | |
tree | 24ae1fa5d956c1a999963f19588ba730647cd0da /common/resolv.c | |
parent | 161d49ebc8d422975981122fb47a3e4d0b295ee2 (diff) | |
download | isc-dhcp-357708da5a4485dedc54216448e4aff8a4564687.tar.gz |
Ignore lines in resolv.conf whose first token isn't recognized.
Diffstat (limited to 'common/resolv.c')
-rw-r--r-- | common/resolv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/resolv.c b/common/resolv.c index 7aa99d1d..d495e517 100644 --- a/common/resolv.c +++ b/common/resolv.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: resolv.c,v 1.4 1997/06/08 04:05:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: resolv.c,v 1.5 1997/12/06 04:04:07 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -143,7 +143,8 @@ void read_resolv_conf (parse_time) } ns -> rcdate = parse_time; skip_to_semi (cfile); - } + } else + skip_to_semi (cfile); /* Ignore what we don't grok. */ } while (1); token = next_token (&val, cfile); /* Clear the peek buffer */ |