From bf9066b090f58d2b3efeb7f906cf230c6986bc0c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 27 Apr 2010 20:12:14 +1200 Subject: [PATCH] Ensure BasicAuthQueueNode is NULL on allocation --- src/auth/basic/auth_basic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/basic/auth_basic.cc b/src/auth/basic/auth_basic.cc index 024520a815..163392b980 100644 --- a/src/auth/basic/auth_basic.cc +++ b/src/auth/basic/auth_basic.cc @@ -579,7 +579,7 @@ void BasicUser::queueRequest(AuthUserRequest::Pointer auth_user_request, RH * handler, void *data) { BasicAuthQueueNode *node; - node = static_cast(xmalloc(sizeof(BasicAuthQueueNode))); + node = static_cast(xcalloc(1, sizeof(BasicAuthQueueNode))); assert(node); /* save the details */ node->next = auth_queue; -- 2.47.3