]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Domains aren't seperated by commas after search keyword
authorTed Lemon <source@isc.org>
Tue, 3 Jun 1997 00:44:08 +0000 (00:44 +0000)
committerTed Lemon <source@isc.org>
Tue, 3 Jun 1997 00:44:08 +0000 (00:44 +0000)
common/resolv.c

index ed4fc7e9cfdc1a8d0be523389e36f2bfdc22473d..7d999c27b09c08d139dd50affbf48847f092875c 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: resolv.c,v 1.1 1997/06/03 00:25:43 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: resolv.c,v 1.2 1997/06/03 00:44:08 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -101,8 +101,8 @@ void read_resolv_conf (parse_time)
                                        dn = (char *)0;
                                }
                                nd -> rcdate = parse_time;
-                               token = next_token (&val, cfile);
-                       } while (token == COMMA);
+                               token = peek_token (&val, cfile);
+                       } while (token != COMMA);
                        if (token != EOL) {
                                parse_warn ("junk after domain declaration");
                                skip_to_semi (cfile);