]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Zero the correct buffer...
authorTed Lemon <source@isc.org>
Tue, 26 Oct 1999 16:56:34 +0000 (16:56 +0000)
committerTed Lemon <source@isc.org>
Tue, 26 Oct 1999 16:56:34 +0000 (16:56 +0000)
omapip/handle.c

index 5a907bc74b3955fd6b32e18930bb8ebf4ee0ae1f..9c0154149beb61e28cf9de7fc64aa528466d4bb7 100644 (file)
@@ -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);