/*
- * $Id: ACLChecklist.cc,v 1.40 2007/07/19 00:35:27 hno Exp $
+ * $Id: ACLChecklist.cc,v 1.41 2007/07/19 00:37:05 hno Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
/* deny if no rules present */
currentAnswer(ACCESS_DENIED);
+ if (callerGone()) {
+ checkCallback(currentAnswer());
+ return;
+ }
+
/* NOTE: This holds a cbdata reference to the current access_list
* entry, not the whole list.
*/
return checklist;
}
+bool
+ACLChecklist::callerGone()
+{
+ return !cbdataReferenceValid(callback_data);
+}
+
#ifndef _USE_INLINE_
#include "ACLChecklist.cci"
#endif
/*
- * $Id: ACLChecklist.h,v 1.26 2007/07/19 00:35:27 hno Exp $
+ * $Id: ACLChecklist.h,v 1.27 2007/07/19 00:37:05 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
void checking (bool const);
bool lastACLResult_;
+ bool callerGone();
public:
bool lastACLResult(bool x) { return lastACLResult_ = x; }