#ifndef lint
static char copyright[] =
-"$Id: clparse.c,v 1.54 2001/01/25 08:17:17 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n";
+"$Id: clparse.c,v 1.55 2001/02/12 19:37:03 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
skip_to_semi (cfile);
return;
}
- if (*list)
- dfree (*list, MDL);
+ /* XXX we can't free the list here, because we may have copied
+ XXX it from an outer config state. */
+ *list = (u_int32_t *)0;
if (ix) {
*list = dmalloc ((ix + 1) * sizeof **list, MDL);
if (!*list)
}
tmp = ((struct string_list *)
- dmalloc (strlen (val) + 1 +
- sizeof (struct string_list *), MDL));
+ dmalloc (strlen (val) + sizeof (struct string_list),
+ MDL));
if (!tmp)
log_fatal ("no memory for string list entry.");