]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Fix PURGE.
authorrobertc <>
Sun, 25 May 2003 08:24:05 +0000 (08:24 +0000)
committerrobertc <>
Sun, 25 May 2003 08:24:05 +0000 (08:24 +0000)
Keywords:

Purging a nonexistant object would attempt to release a null store entry.

src/client_side_reply.cc

index 4815c9d58c39a1b808c989f52800c1cf14b6cecd..b003758e90f112a74a39e17ef09bc1c97cef628d 100644 (file)
@@ -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;