]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: rousskov
authoramosjeffries <>
Wed, 27 Feb 2008 17:04:51 +0000 (17:04 +0000)
committeramosjeffries <>
Wed, 27 Feb 2008 17:04:51 +0000 (17:04 +0000)
Assert that checklist and request are set instead of segfaulting as in bug 2168

src/ACLDestinationDomain.cc

index 68739f53bbda71594b82338e08025c8e38b07f44..a8b32efd868dcaad9582ccfe00256bdccf3ac80e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLDestinationDomain.cc,v 1.15 2007/11/03 04:49:53 wessels Exp $
+ * $Id: ACLDestinationDomain.cc,v 1.15.2.1 2008/02/27 10:04:51 amosjeffries Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -76,6 +76,8 @@ ACLStrategised<char const *> ACLDestinationDomain::RegexRegistryEntry_(new ACLRe
 int
 ACLDestinationDomainStrategy::match (ACLData<MatchType> * &data, ACLChecklist *checklist)
 {
+    assert(checklist != NULL && checklist->request != NULL);
+
     const ipcache_addrs *ia = NULL;
     const char *fqdn = NULL;