]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Don't parse for semi twice in failover state.
authorTed Lemon <source@isc.org>
Thu, 11 Jan 2001 23:15:31 +0000 (23:15 +0000)
committerTed Lemon <source@isc.org>
Thu, 11 Jan 2001 23:15:31 +0000 (23:15 +0000)
- Parse client-updates in allow/deny statements.

server/confpars.c

index 6f920c659775d657eebab40faf273184f5072ffd..92d980284ae12890ac50398f8a239d58b71aaad4 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: confpars.c,v 1.128 2000/11/28 23:50:01 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: confpars.c,v 1.129 2001/01/11 23:15:31 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -791,8 +791,6 @@ void parse_failover_peer (cfile, group, type)
                                return;
                        }
                        split = atoi (val);
-                       if (!parse_semi (cfile))
-                               goto badsplit;
                        if (split > 255) {
                                parse_warn (cfile, "split must be < 256");
                        } else {
@@ -2970,6 +2968,11 @@ int parse_allow_deny (oc, cfile, flag)
                                       &server_options [SV_DECLINES]);
                break;
 
+             case CLIENT_UPDATES:
+               status = option_cache (oc, (struct data_string *)0, data,
+                                      &server_options [SV_CLIENT_UPDATES]);
+               break;
+
              default:
                parse_warn (cfile, "expecting allow/deny key");
                skip_to_semi (cfile);