From: Amos Jeffries Date: Tue, 27 Apr 2010 08:12:14 +0000 (+1200) Subject: Ensure BasicAuthQueueNode is NULL on allocation X-Git-Tag: SQUID_3_2_0_1~167^2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf9066b090f58d2b3efeb7f906cf230c6986bc0c;p=thirdparty%2Fsquid.git Ensure BasicAuthQueueNode is NULL on allocation --- 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;