]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix helper reply length detection
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 24 Nov 2012 14:30:02 +0000 (03:30 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 24 Nov 2012 14:30:02 +0000 (03:30 +1300)
commit36cb7d3ece180e509c71937a07db89a57e8a0e69
tree39302ee59fc15aa0e284cb63befd7596ee822897
parent31f2702c1559845c01bfa7693d883557c824fa31
Fix helper reply length detection

Stateless helper reply handler was incrementing 't' position before
passing the details of response length to HelperReply parser.

Stateful helper reply handler was pointing at position of \n insteaf of
position of \r when \r\n received.

Both of these cause the response length parameter sent to the reply
parser to be longer than the actual response characters length. Breaking
parse on responses with just result code followed by \n since the string
comparison EOL is now tested against input length 2/3/4.
src/helper.cc