mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
Fix a couple of silly mistakes.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: parse.c,v 1.51 1999/10/21 02:34:32 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: parse.c,v 1.52 1999/10/21 03:08:38 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -1287,8 +1287,7 @@ int parse_executable_statement (result, cfile, lose)
|
|||||||
pad:
|
pad:
|
||||||
token = next_token (&val, cfile);
|
token = next_token (&val, cfile);
|
||||||
cache = (struct option_cache *)0;
|
cache = (struct option_cache *)0;
|
||||||
if (!parse_allow_deny (&cache, cfile,
|
if (!parse_allow_deny (&cache, cfile, flag))
|
||||||
token == ALLOW ? 1 : 0))
|
|
||||||
return 0;
|
return 0;
|
||||||
if (!executable_statement_allocate
|
if (!executable_statement_allocate
|
||||||
(result, "parse_executable_statement"))
|
(result, "parse_executable_statement"))
|
||||||
@@ -2787,6 +2786,8 @@ int parse_allow_deny (oc, cfile, flag)
|
|||||||
case DECLINES:
|
case DECLINES:
|
||||||
status = option_cache (oc, (struct data_string *)0, data,
|
status = option_cache (oc, (struct data_string *)0, data,
|
||||||
&server_options [SV_DECLINES]);
|
&server_options [SV_DECLINES]);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
parse_warn (cfile, "expecting allow/deny key");
|
parse_warn (cfile, "expecting allow/deny key");
|
||||||
skip_to_semi (cfile);
|
skip_to_semi (cfile);
|
||||||
|
Reference in New Issue
Block a user