#ifndef lint
static char copyright[] =
-"$Id: discover.c,v 1.13 1999/09/09 23:26:11 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: discover.c,v 1.14 1999/09/15 19:47:27 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
if (!tmp)
log_fatal ("Insufficient memory to %s %s",
"record interface", ifp -> ifr_name);
+ memset (tmp, 0, sizeof *tmp);
strcpy (tmp -> name, ifp -> ifr_name);
tmp -> circuit_id = (u_int8_t *)tmp -> name;
tmp -> circuit_id_len = strlen (tmp -> name);
#ifndef lint
static char copyright[] =
-"$Id: memory.c,v 1.56 1999/09/09 23:26:36 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: memory.c,v 1.57 1999/09/15 19:47:27 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
if (!address_range) {
strcpy (lowbuf, piaddr (low));
strcpy (highbuf, piaddr (high));
- log_fatal ("No memory for address range %s-%s.", lowbuf, highbuf);
+ log_fatal ("No memory for address range %s-%s.",
+ lowbuf, highbuf);
}
memset (address_range, 0, (sizeof *address_range) * (max - min + 1));
log_fatal ("No memory for lease %s\n",
piaddr (lease -> ip_addr));
}
+ memset (comp, 0, sizeof *comp);
*comp = *lease;
comp -> next = dangling_leases;
comp -> prev = (struct lease *)0;
obj = (omapi_connection_object_t *)malloc (sizeof *obj);
if (!obj)
return ISC_R_NOMEMORY;
+ memset (obj, 0, sizeof *obj);
obj -> refcnt = 1;
obj -> type = omapi_type_connection;
#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.79 1999/09/09 23:32:22 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.80 1999/09/15 19:47:38 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
"parse_host_declaration");
if (!host)
log_fatal ("can't allocate host decl struct %s.", name);
-
+ memset (host, 0, sizeof *host);
host -> name = name;
host -> group = clone_group (group, "parse_host_declaration");