2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-03 15:56:00 +00:00

Fix up authoritative parsing.

This commit is contained in:
Ted Lemon
1999-02-23 19:07:14 +00:00
parent 2a3318abcb
commit 1b8223ae21

View File

@@ -42,7 +42,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: confpars.c,v 1.58 1999/02/14 19:40:22 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; "$Id: confpars.c,v 1.59 1999/02/23 19:07:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -368,6 +368,7 @@ int parse_statement (cfile, group, type, host_decl, declaration)
goto insert_statement; goto insert_statement;
case TOKEN_NOT: case TOKEN_NOT:
token = next_token (&val, cfile);
token = next_token (&val, cfile); token = next_token (&val, cfile);
switch (token) { switch (token) {
case AUTHORITATIVE: case AUTHORITATIVE:
@@ -380,11 +381,11 @@ int parse_statement (cfile, group, type, host_decl, declaration)
} }
break; break;
case AUTHORITATIVE: case AUTHORITATIVE:
token = next_token (&val, cfile);
group -> authoritative = 1; group -> authoritative = 1;
authoritative: authoritative:
if (type == HOST_DECL || if (type == HOST_DECL)
(type == SUBNET_DECL && share && share -> subnets && parse_warn ("authority makes no sense here.");
share -> subnets -> next_sibling))
parse_semi (cfile); parse_semi (cfile);
break; break;