Commit 205547f1 authored by Ted Lemon's avatar Ted Lemon
Browse files

Zero listener object before initializing.

parent 55bcb3f2
......@@ -35,6 +35,7 @@ isc_result_t omapi_listen (omapi_object_t *h,
obj = (omapi_listener_object_t *)malloc (sizeof *obj);
if (!obj)
return ISC_R_NOMEMORY;
memset (obj, 0, sizeof *obj);
obj -> refcnt = 1;
obj -> type = omapi_type_listener;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment