Clear subnets before using them.

This commit is contained in:
Guus Sliepen 2002-07-11 12:42:43 +00:00
parent 8dd09568f1
commit c98db1b861

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: subnet.c,v 1.1.2.38 2002/07/10 11:32:33 guus Exp $ $Id: subnet.c,v 1.1.2.39 2002/07/11 12:42:43 guus Exp $
*/ */
#include "config.h" #include "config.h"
@ -155,7 +155,7 @@ cp
subnet_t *new_subnet(void) subnet_t *new_subnet(void)
{ {
cp cp
return (subnet_t *)xmalloc(sizeof(subnet_t)); return (subnet_t *)xmalloc_and_zero(sizeof(subnet_t));
} }
void free_subnet(subnet_t *subnet) void free_subnet(subnet_t *subnet)