From: wessels <> Date: Tue, 10 Oct 2000 00:37:10 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4fc44749091470b0f845edc5a7b0029a57521a;p=thirdparty%2Fsquid.git DW: - 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. --- diff --git a/src/store_client.cc b/src/store_client.cc index bb3e7d3eff..4edad8e8a9 100644 --- a/src/store_client.cc +++ b/src/store_client.cc @@ -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);