]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: hno
authoramosjeffries <>
Sun, 24 Feb 2008 18:28:09 +0000 (18:28 +0000)
committeramosjeffries <>
Sun, 24 Feb 2008 18:28:09 +0000 (18:28 +0000)
Accept some unknown store meta entries without throwing away the rest.

The store meta parser stopped when encountering the first "unknown" entry.
This is bad for extensibility. Should continue parsing what we do know
how to handle.

src/StoreMetaUnpacker.cc

index 91e267c5649c7d4e6cb35daf89b3caaa82e439ae..07a0df6bc7f30e83c411361eb02ac7f5514e8131 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: StoreMetaUnpacker.cc,v 1.5 2007/04/30 16:56:09 wessels Exp $
+ * $Id: StoreMetaUnpacker.cc,v 1.5.4.1 2008/02/24 11:28:09 amosjeffries Exp $
  *
  * DEBUG: section 20    Storage Manager Swapfile Unpacker
  * AUTHOR: Robert Collins
@@ -98,10 +98,8 @@ StoreMetaUnpacker::doOneEntry()
 
     StoreMeta *newNode = StoreMeta::Factory(type, length, &buf[position]);
 
-    if (!newNode)
-        return false;
-
-    tail = StoreMeta::Add (tail, newNode);
+    if (newNode)
+       tail = StoreMeta::Add (tail, newNode);
 
     position += length;