2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 06:45:27 +00:00

When making list of IP addresses or hostnames, account for the first expression on the list.

This commit is contained in:
Ted Lemon
1998-11-06 00:31:08 +00:00
parent 44aa67f6ce
commit 028a8588da

View File

@@ -42,7 +42,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: confpars.c,v 1.52 1998/11/06 00:16:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; "$Id: confpars.c,v 1.53 1998/11/06 00:31:08 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"
@@ -967,15 +967,18 @@ int parse_fixed_addr_param (oc, cfile)
do { do {
tmp = (struct expression *)0; tmp = (struct expression *)0;
if (parse_ip_addr_or_hostname (&tmp, cfile, 1)) { if (parse_ip_addr_or_hostname (&tmp, cfile, 1)) {
new = (struct expression *)0; if (expr) {
status = make_concat (&new, expr, tmp); new = (struct expression *)0;
expression_dereference (&expr, status = make_concat (&new, expr, tmp);
"parse_fixed_addr_param"); expression_dereference
expression_dereference (&tmp, (&expr, "parse_fixed_addr_param");
"parse_fixed_addr_param"); expression_dereference
if (status) (&tmp, "parse_fixed_addr_param");
return 0; if (status)
expr = new; return 0;
expr = new;
} else
expr = tmp;
} else { } else {
if (expr) if (expr)
expression_dereference expression_dereference