From: wessels <> Date: Thu, 8 Sep 2005 03:53:12 +0000 (+0000) Subject: Had a coredump where ACLIP::data was NULL. This patch avoids the X-Git-Tag: SQUID_3_0_PRE4~643 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aae37f652357ead5715f2ea24dfde93ca5d8d02;p=thirdparty%2Fsquid.git Had a coredump where ACLIP::data was NULL. This patch avoids the NULL pointer dereference, but there might be another bug elsewhere that allows data to be NULL. --- diff --git a/src/ACLIP.cc b/src/ACLIP.cc index 0d3a5c856f..8f09de6c47 100644 --- a/src/ACLIP.cc +++ b/src/ACLIP.cc @@ -341,7 +341,8 @@ ACLIP::parse() ACLIP::~ACLIP() { - data->destroy(IPSplay::DefaultFree); + if (data) + data->destroy(IPSplay::DefaultFree); } wordlist *