]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
BUg 2318 : compilation issue in some compilers
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Apr 2008 04:41:27 +0000 (16:41 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Apr 2008 04:41:27 +0000 (16:41 +1200)
src/HttpMsg.cc

index 09308867b8333f4f2c06cf7cd8c3bd93ed64ca8c..4126ef19c76829e6745cddfc808997ca30d10c93 100644 (file)
@@ -154,7 +154,7 @@ bool HttpMsg::parse(MemBuf *buf, bool eof, http_status *error)
     const size_t hdr_len = headersEnd(buf->content(), buf->contentSize());
 
     // TODO: move to httpReplyParseStep()
-    if (hdr_len > Config.maxReplyHeaderSize || hdr_len <= 0 && (size_t)buf->contentSize() > Config.maxReplyHeaderSize) {
+    if (hdr_len > Config.maxReplyHeaderSize || (hdr_len <= 0 && (size_t)buf->contentSize() > Config.maxReplyHeaderSize)) {
         debugs(58, 1, "HttpMsg::parse: Too large reply header (" <<
                hdr_len << " > " << Config.maxReplyHeaderSize);
         *error = HTTP_HEADER_TOO_LARGE;