]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Send fatal error if response header contains a nul-byte
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 24 Jul 2009 11:21:01 +0000 (23:21 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 24 Jul 2009 11:21:01 +0000 (23:21 +1200)
src/HttpMsg.cc

index 22e61db8922003de018c55ef494d2104b35d7c6d..0132de9e49d3bf086601936f282cdeac949d70f6 100644 (file)
@@ -189,6 +189,7 @@ bool HttpMsg::parse(MemBuf *buf, bool eof, http_status *error)
     if (res == 0) {
         debugs(58, 2, "HttpMsg::parse: strange, need more data near '" <<
                buf->content() << "'");
+        *error = HTTP_INVALID_HEADER;
         return false; // but this should not happen due to headersEnd() above
     }