]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
authorhno <>
Thu, 19 Jul 2007 06:35:27 +0000 (06:35 +0000)
committerhno <>
Thu, 19 Jul 2007 06:35:27 +0000 (06:35 +0000)
Bug #1984: assertion failed: ACLChecklist.cc:172: "A"

back out incorrect deleteWhenDone patch.

src/ACLChecklist.cc
src/ACLChecklist.h
src/client_side_request.cc

index 2a5d4c23e16d7075dd2f147c1d9891cd85a02fbc..c0fdb3a7d2a747fa1518643972d5f6d0c964e311 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cc,v 1.39 2007/06/17 21:39:49 hno Exp $
+ * $Id: ACLChecklist.cc,v 1.40 2007/07/19 00:35:27 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -199,12 +199,6 @@ ACLChecklist::asyncInProgress(bool const newAsync)
            " async set to " << async_);
 }
 
-void
-ACLChecklist::markDeleteWhenDone()
-{
-    deleteWhenDone = true;
-}
-
 bool
 ACLChecklist::finished() const
 {
@@ -325,9 +319,6 @@ ACLChecklist::matchAclList(const acl_list * head, bool const fast)
                 continue;
             }
 
-            if (deleteWhenDone && !asyncInProgress())
-                delete this;
-
             PROF_stop(aclMatchAclList);
 
             return;
@@ -372,7 +363,6 @@ ACLChecklist::ACLChecklist() : accessList (NULL), my_port (0), request (NULL),
         conn_(NULL),
         async_(false),
         finished_(false),
-        deleteWhenDone(false),
         allow_(ACCESS_DENIED),
         state_(NullState::Instance()),
         destinationDomainChecked_(false),
index 3a7a188fbdb55074e1e43a40866f71465d2e5b1b..36044c08b3f0cba14f046991da95329d5fd26cdc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ACLChecklist.h,v 1.25 2007/06/17 21:39:49 hno Exp $
+ * $Id: ACLChecklist.h,v 1.26 2007/07/19 00:35:27 hno Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -103,7 +103,6 @@ class NullState : public AsyncState
 
     bool asyncInProgress() const;
     void asyncInProgress(bool const);
-    void markDeleteWhenDone();
     bool finished() const;
     void markFinished();
     void check();
@@ -147,7 +146,6 @@ private:
     ConnStateData::Pointer conn_;      /* hack for ident and NTLM */
     bool async_;
     bool finished_;
-    bool deleteWhenDone;
     allow_t allow_;
     AsyncState *state_;
     bool destinationDomainChecked_;
index 80ad6048c8f9399d8ee4f7fefc65fb26a6c52f7a..e647a22b85d15fb25489e201b7dd5251d3d2480a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_request.cc,v 1.90 2007/06/02 11:50:32 hno Exp $
+ * $Id: client_side_request.cc,v 1.91 2007/07/19 00:35:27 hno Exp $
  * 
  * DEBUG: section 85    Client-side Request Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -112,14 +112,6 @@ ClientRequestContext::~ClientRequestContext()
     if (http)
         cbdataReferenceDone(http);
 
-    if (acl_checklist) {
-        if (acl_checklist->asyncInProgress()) {
-            acl_checklist->markDeleteWhenDone();
-        } else {
-            delete acl_checklist;
-        }
-    }
-
     debugs(85,3, HERE << this << " ClientRequestContext destructed");
 }