]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assertion failed: cbdata.cc:450: "c->locks > 0"
authorhno <>
Sun, 6 Nov 2005 19:59:06 +0000 (19:59 +0000)
committerhno <>
Sun, 6 Nov 2005 19:59:06 +0000 (19:59 +0000)
if ntlm/negotiate auth helper crashes.

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

index d8eedb3be76b7e9b0c620b68604ed692da4d492e..6b95345ac511a7108c0ff1f0478a4522afdbad60 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: auth_negotiate.cc,v 1.3 2005/10/28 18:32:17 serassio Exp $
+ * $Id: auth_negotiate.cc,v 1.4 2005/11/06 12:59:06 hno Exp $
  *
  * DEBUG: section 29    Negotiate Authenticator
  * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli
@@ -384,7 +384,7 @@ authenticateNegotiateHandleReply(void *data, void *lastserver, char *reply)
     AuthNegotiateUserRequest *negotiate_request;
 
     debug(29, 8) ("authenticateNegotiateHandleReply: helper: '%p' sent us '%s'\n", lastserver, reply ? reply : "<NULL>");
-    valid = cbdataReferenceValid(data);
+    valid = cbdataReferenceValid(r->data);
 
     if (!valid) {
         debug(29, 1) ("authenticateNegotiateHandleReply: invalid callback data. Releasing helper '%p'.\n", lastserver);
index b81ad454908d0ce7b98922448e293d803cd345f5..e9183fc9fce3858eec02feef80761762e922f311 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: auth_ntlm.cc,v 1.51 2005/10/28 18:32:17 serassio Exp $
+ * $Id: auth_ntlm.cc,v 1.52 2005/11/06 12:59:07 hno Exp $
  *
  * DEBUG: section 29    NTLM Authenticator
  * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli
@@ -352,7 +352,7 @@ authenticateNTLMHandleReply(void *data, void *lastserver, char *reply)
     AuthNTLMUserRequest *ntlm_request;
 
     debug(29, 8) ("authenticateNTLMHandleReply: helper: '%p' sent us '%s'\n", lastserver, reply ? reply : "<NULL>");
-    valid = cbdataReferenceValid(data);
+    valid = cbdataReferenceValid(r->data);
 
     if (!valid) {
         debug(29, 1) ("authenticateNTLMHandleReply: invalid callback data. Releasing helper '%p'.\n", lastserver);