]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix SegFault in Auth.
authoramosjeffries <>
Sat, 1 Sep 2007 09:51:22 +0000 (09:51 +0000)
committeramosjeffries <>
Sat, 1 Sep 2007 09:51:22 +0000 (09:51 +0000)
Pointer-Safe code cannot work if pointers are not set properly in constructors.

src/auth/negotiate/auth_negotiate.cc
src/auth/ntlm/auth_ntlm.cc

index 575f225e052fcbe2bdcf2526cb63a7fb6abd8185..9f7ceaccdcf34bce3136faef9e66dec73f268f73 100644 (file)
@@ -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()
index 4cbf3ab5e1fcdc4a7eb2ce63d1983169eda4cab0..6e6d963bdf9c22f87d968490a938f49bc70d6b31 100644 (file)
@@ -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()