]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Had a coredump where ACLIP::data was NULL. This patch avoids the
authorwessels <>
Thu, 8 Sep 2005 03:53:12 +0000 (03:53 +0000)
committerwessels <>
Thu, 8 Sep 2005 03:53:12 +0000 (03:53 +0000)
NULL pointer dereference, but there might be another bug elsewhere that
allows data to be NULL.

src/ACLIP.cc

index 0d3a5c856fdf7eb6a8fbd148989279f46252aa88..8f09de6c476ed356f83664df41cfc2289b74e74d 100644 (file)
@@ -341,7 +341,8 @@ ACLIP::parse()
 
 ACLIP::~ACLIP()
 {
-    data->destroy(IPSplay::DefaultFree);
+    if (data)
+        data->destroy(IPSplay::DefaultFree);
 }
 
 wordlist *