From: Ted Lemon Date: Tue, 26 Oct 1999 16:56:34 +0000 (+0000) Subject: Zero the correct buffer... X-Git-Tag: BCTEL_SPECIAL_19991124~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6630cc801e709f1a6636f4da9ed444a17c04d7d2;p=thirdparty%2Fdhcp.git Zero the correct buffer... --- diff --git a/omapip/handle.c b/omapip/handle.c index 5a907bc74..9c0154149 100644 --- a/omapip/handle.c +++ b/omapip/handle.c @@ -89,7 +89,7 @@ isc_result_t omapi_object_handle (omapi_handle_t *h, omapi_object_t *o) new = malloc (sizeof *new); if (!new) return ISC_R_NOMEMORY; - memset (omapi_handle_table, 0, sizeof *omapi_handle_table); + memset (new, 0, sizeof *new); new -> first = 0; new -> limit = (omapi_handle_table -> limit * OMAPI_HANDLE_TABLE_SIZE);