From: Ted Lemon Date: Sat, 6 Dec 1997 04:04:07 +0000 (+0000) Subject: Ignore lines in resolv.conf whose first token isn't recognized. X-Git-Tag: V2-BETA-1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=357708da5a4485dedc54216448e4aff8a4564687;p=thirdparty%2Fdhcp.git Ignore lines in resolv.conf whose first token isn't recognized. --- diff --git a/common/resolv.c b/common/resolv.c index 7aa99d1dd..d495e517d 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 */