From: Ted Lemon Date: Thu, 11 Jan 2001 23:15:31 +0000 (+0000) Subject: - Don't parse for semi twice in failover state. X-Git-Tag: V3-BETA-2-PATCH-12~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fdcc1a0d5f1a4291465f479ad98895b829c4d3c;p=thirdparty%2Fdhcp.git - Don't parse for semi twice in failover state. - Parse client-updates in allow/deny statements. --- diff --git a/server/confpars.c b/server/confpars.c index 6f920c659..92d980284 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -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);