]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Tue, 10 Oct 2000 00:37:10 +0000 (00:37 +0000)
committerwessels <>
Tue, 10 Oct 2000 00:37:10 +0000 (00:37 +0000)
 - in storeClientReadHeader I see no reason to stay in the loop checking
   swap header values when we find a mismatch.  Currently every
   bad swapfile is displaying both MD5 mismatch and URL mismatch.

src/store_client.cc

index bb3e7d3effd37b6ad280f2e033a676dc2ec258c1..4edad8e8a9e93212722eaf4b35d201d3b2f6f521 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_client.cc,v 1.95 2000/06/27 22:06:04 hno Exp $
+ * $Id: store_client.cc,v 1.96 2000/10/09 18:37:10 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -404,7 +404,7 @@ storeClientReadHeader(void *data, const char *buf, ssize_t len)
     /*
      * Check the meta data and make sure we got the right object.
      */
-    for (t = tlv_list; t; t = t->next) {
+    for (t = tlv_list; t && swap_object_ok; t = t->next) {
        switch (t->type) {
        case STORE_META_KEY:
            assert(t->length == MD5_DIGEST_CHARS);