From: robertc <> Date: Sun, 25 May 2003 08:24:05 +0000 (+0000) Subject: Summary: Fix PURGE. X-Git-Tag: SQUID_3_0_PRE1~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fc0ac767f52f31dc3fd65ea11ef74feed70049b;p=thirdparty%2Fsquid.git Summary: Fix PURGE. Keywords: Purging a nonexistant object would attempt to release a null store entry. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index 4815c9d58c..b003758e90 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.51 2003/05/17 17:35:06 hno Exp $ + * $Id: client_side_reply.cc,v 1.52 2003/05/25 02:24:05 robertc Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -956,7 +956,7 @@ clientReplyContext::purgeDoPurgeGet(StoreEntry *newEntry) void clientReplyContext::purgeDoPurgeHead(StoreEntry *newEntry) { - if (newEntry) { + if (newEntry && !newEntry->isNull()) { debug(88, 4) ("clientPurgeRequest: HEAD '%s'\n", storeUrl(newEntry)); storeRelease(newEntry); purgeStatus = HTTP_OK;