#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.116 2000/06/08 21:20:00 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.117 2000/06/12 20:14:16 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
log_fatal ("Can't allocate shared subnet: %s",
isc_result_totext (status));
if (!clone_group (&share -> group, group, MDL))
- log_fatal ("Can't allocate group for shared subnet.");
- shared_network_reference (&share -> group -> shared_network,
- share, MDL);
+ log_fatal ("Can't allocate group for shared net");
parse_subnet_declaration (cfile, share);
if (status != ISC_R_SUCCESS)
log_fatal ("no memory for pool.");
- clone_group (&pool -> group, group, MDL);
+ if (!clone_group (&pool -> group, group, MDL))
+ log_fatal ("can't clone pool group");
if (type == SUBNET_DECL)
shared_network_reference (&pool -> shared_network,
log_fatal ("can't allocate host decl struct %s: %s",
name, isc_result_totext (status));
host -> name = name;
- if (clone_group (&host -> group, group, MDL) != ISC_R_SUCCESS) {
- log_fatal ("can't clone group for host %s: %s",
- name, isc_result_totext (status));
+ if (!clone_group (&host -> group, group, MDL)) {
+ log_fatal ("can't clone group for host %s", name);
boom:
host_dereference (&host, MDL);
return;
return cp ? (status == ISC_R_SUCCESS) : 1;
}
/* Give the subclass its own group. */
- clone_group (&class -> group, class -> group, MDL);
+ if (!clone_group (&class -> group, class -> group, MDL))
+ log_fatal ("can't clone class group.");
+
}
if (!parse_lbrace (cfile)) {