]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Ignore lines in resolv.conf whose first token isn't recognized.
authorTed Lemon <source@isc.org>
Sat, 6 Dec 1997 04:04:07 +0000 (04:04 +0000)
committerTed Lemon <source@isc.org>
Sat, 6 Dec 1997 04:04:07 +0000 (04:04 +0000)
common/resolv.c

index 7aa99d1dd14818701afb6aeba38f1ebe6316dfc6..d495e517ddba3fdef55353b1cd0adeb5d75ba88b 100644 (file)
@@ -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 */