diff options
author | Damien Neil <source@isc.org> | 2000-08-03 22:41:06 +0000 |
---|---|---|
committer | Damien Neil <source@isc.org> | 2000-08-03 22:41:06 +0000 |
commit | 918673bbc647c9b3d0296e45d2f54200c7844176 (patch) | |
tree | 661c724e7e2c07352c36c4c9f4bea6ae6d19addc /common/comapi.c | |
parent | 49146f3c1512a5a18445237ad3edfb91b6434545 (diff) | |
download | isc-dhcp-918673bbc647c9b3d0296e45d2f54200c7844176.tar.gz |
Remove an unneeded memset() that caused a null-pointer-dereference when
you try to create a group object.
Diffstat (limited to 'common/comapi.c')
-rw-r--r-- | common/comapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/comapi.c b/common/comapi.c index 1bae3c3e..ce88d896 100644 --- a/common/comapi.c +++ b/common/comapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: comapi.c,v 1.3 2000/07/06 22:37:38 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: comapi.c,v 1.4 2000/08/03 22:41:06 neild Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -410,7 +410,6 @@ isc_result_t dhcp_group_create (omapi_object_t **lp, status = group_object_allocate (&group, MDL); if (status != ISC_R_SUCCESS) return status; - memset (group, 0, sizeof *group); group -> flags = GROUP_OBJECT_DYNAMIC; status = omapi_object_reference (lp, (omapi_object_t *)group, MDL); group_object_dereference (&group, MDL); |