From: Ted Lemon Date: Wed, 11 Nov 1998 07:49:27 +0000 (+0000) Subject: Pre-zero group structures. X-Git-Tag: carrel-2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d61803aa2f3378b6ff36734a3a6d74297e7ec35;p=thirdparty%2Fdhcp.git Pre-zero group structures. --- diff --git a/common/alloc.c b/common/alloc.c index 599c2efb4..90a71d4fa 100644 --- a/common/alloc.c +++ b/common/alloc.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: alloc.c,v 1.19 1998/11/09 02:43:42 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: alloc.c,v 1.20 1998/11/11 07:49:27 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -153,6 +153,8 @@ struct group *new_group (name) { struct group *rval = dmalloc (sizeof (struct group), name); + if (rval) + memset (rval, 0, sizeof *rval); return rval; }