]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
dmalloc already zeros allocated memory
authorTed Lemon <source@isc.org>
Wed, 11 Sep 1996 06:35:16 +0000 (06:35 +0000)
committerTed Lemon <source@isc.org>
Wed, 11 Sep 1996 06:35:16 +0000 (06:35 +0000)
common/dispatch.c
dispatch.c

index 0bdc22dbe8750065e556854256d6cb886cea3da1..404e852290ee4e7cc9d1d49003b9399787642cf1 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.24 1996/09/11 05:53:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.25 1996/09/11 06:35:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -139,7 +139,6 @@ void discover_interfaces ()
                        if (!tmp)
                                error ("Insufficient memory to %s %s",
                                       "record interface", ifp -> ifr_name);
-                       memset (tmp, 0, sizeof *tmp);
                        strcpy (tmp -> name, ifp -> ifr_name);
                        tmp -> next = interfaces;
                        tmp -> flags = ir;
index 0bdc22dbe8750065e556854256d6cb886cea3da1..404e852290ee4e7cc9d1d49003b9399787642cf1 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.24 1996/09/11 05:53:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.25 1996/09/11 06:35:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -139,7 +139,6 @@ void discover_interfaces ()
                        if (!tmp)
                                error ("Insufficient memory to %s %s",
                                       "record interface", ifp -> ifr_name);
-                       memset (tmp, 0, sizeof *tmp);
                        strcpy (tmp -> name, ifp -> ifr_name);
                        tmp -> next = interfaces;
                        tmp -> flags = ir;