From: Amos Jeffries Date: Sat, 23 Nov 2013 05:21:34 +0000 (-0700) Subject: Fix other issues in rev.13143 X-Git-Tag: SQUID_3_5_0_1~498 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a537e541dcb3a79b6af618fe1f8d87549fa0d82;p=thirdparty%2Fsquid.git Fix other issues in rev.13143 --- diff --git a/src/http.cc b/src/http.cc index 496001d7bd..99773d74f7 100644 --- a/src/http.cc +++ b/src/http.cc @@ -427,7 +427,7 @@ HttpStateData::cacheableReply() // HTTPbis WG verdict on this is that it is omitted from the spec due to being 'unexpected' by // some. The caching+revalidate is not exactly unsafe though with Squids interpretation of no-cache // (without parameters) as equivalent to must-revalidate in the reply. - } else if (rep->cache_control->hasNoCache() && rep->cache_control->noCache().size() > 0 && !REFRESH_OVERRIDE(ignore_must_revalidate)) { + } else if (rep->cache_control->hasNoCache() && rep->cache_control->noCache().size() == 0 && !REFRESH_OVERRIDE(ignore_must_revalidate)) { debugs(22, 3, HERE << "Authenticated but server reply Cache-Control:no-cache (equivalent to must-revalidate)"); mayStore = true; #endif diff --git a/src/ssl/ErrorDetailManager.cc b/src/ssl/ErrorDetailManager.cc index e136dfa978..5796f9c0b1 100644 --- a/src/ssl/ErrorDetailManager.cc +++ b/src/ssl/ErrorDetailManager.cc @@ -230,9 +230,9 @@ Ssl::ErrorDetailFile::parse(const char *buffer, int len, bool eof) entry.error_no = ssl_error; entry.name = errorName; String tmp = parser.getByName("detail"); - int detailsParseOk = httpHeaderParseQuotedString(tmp.termedBuf(), tmp.size(), &entry.detail); + const int detailsParseOk = httpHeaderParseQuotedString(tmp.termedBuf(), tmp.size(), &entry.detail); tmp = parser.getByName("descr"); - int descrParseOk = httpHeaderParseQuotedString(tmp.termedBuf(), tmp.size(), &entry.descr); + const int descrParseOk = httpHeaderParseQuotedString(tmp.termedBuf(), tmp.size(), &entry.descr); if (!detailsParseOk || !descrParseOk) { debugs(83, DBG_IMPORTANT, HERE <<