]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
authorrousskov <>
Fri, 8 Feb 2008 01:16:24 +0000 (01:16 +0000)
committerrousskov <>
Fri, 8 Feb 2008 01:16:24 +0000 (01:16 +0000)
Bug 2172: When user fails authentification Squid restarts

Replaced an assertion that there is no auth_user_request, a comment what
to do when there is no auth_user_request, and a comment that there can
be no auth_user_request with what the first comment suggested to do.

src/ACLChecklist.cc

index 6db36236698a5fa06a87c64ba8779a851ec417a2..74eaead25d9bbfdd49dbb6166af60f5ef680d151 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cc,v 1.43 2007/12/14 23:11:45 amosjeffries Exp $
+ * $Id: ACLChecklist.cc,v 1.44 2008/02/07 18:16:24 rousskov Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -393,13 +393,9 @@ ACLChecklist::~ACLChecklist()
 
     HTTPMSGUNLOCK(reply);
 
-    /*
-     * DPW 2007-05-08
-     * If this fails, then we'll need a backup UNLOCK call in the
-     * destructor.
-     */
-    /* AYJ: It fails in builds without any Authentication configured */
-    assert(auth_user_request == NULL);
+    // no auth_user_request in builds without any Authentication configured
+    if (auth_user_request)
+        AUTHUSERREQUESTUNLOCK(auth_user_request, "ACLChecklist destructor");
 
     conn_ = NULL;