From: amosjeffries <> Date: Sat, 1 Sep 2007 09:51:22 +0000 (+0000) Subject: Fix SegFault in Auth. X-Git-Tag: SQUID_3_0_RC1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01413e4e84acb919b3d4d63ba508bc78db1f308b;p=thirdparty%2Fsquid.git Fix SegFault in Auth. Pointer-Safe code cannot work if pointers are not set properly in constructors. --- diff --git a/src/auth/negotiate/auth_negotiate.cc b/src/auth/negotiate/auth_negotiate.cc index 575f225e05..9f7ceaccdc 100644 --- a/src/auth/negotiate/auth_negotiate.cc +++ b/src/auth/negotiate/auth_negotiate.cc @@ -1,6 +1,6 @@ /* - * $Id: auth_negotiate.cc,v 1.26 2007/08/28 22:35:29 hno Exp $ + * $Id: auth_negotiate.cc,v 1.27 2007/09/01 03:51:22 amosjeffries Exp $ * * DEBUG: section 29 Negotiate Authenticator * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli @@ -776,6 +776,7 @@ AuthNegotiateUserRequest::AuthNegotiateUserRequest() : client_blob=0; server_blob=0; authserver=NULL; + request=NULL; } AuthNegotiateUserRequest::~AuthNegotiateUserRequest() diff --git a/src/auth/ntlm/auth_ntlm.cc b/src/auth/ntlm/auth_ntlm.cc index 4cbf3ab5e1..6e6d963bdf 100644 --- a/src/auth/ntlm/auth_ntlm.cc +++ b/src/auth/ntlm/auth_ntlm.cc @@ -1,6 +1,6 @@ /* - * $Id: auth_ntlm.cc,v 1.76 2007/08/28 22:35:29 hno Exp $ + * $Id: auth_ntlm.cc,v 1.77 2007/09/01 03:51:23 amosjeffries Exp $ * * DEBUG: section 29 NTLM Authenticator * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli @@ -713,6 +713,7 @@ AuthNTLMUserRequest::AuthNTLMUserRequest() : client_blob=0; server_blob=0; authserver=NULL; + request = NULL; } AuthNTLMUserRequest::~AuthNTLMUserRequest()