]> git.ipfire.org Git - thirdparty/squid.git/commit
FTP FEAT error handling
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 1 Dec 2014 17:22:07 +0000 (19:22 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 1 Dec 2014 17:22:07 +0000 (19:22 +0200)
commitf0174f5b12ac8b7f51baefffac9bea21e2a6196a
tree9e349317d0a910a42ff696dd1e6fde229cde0b22
parentd48fa91ca3ac6e2fecbdf0aaabac1bfc5a29722e
FTP FEAT error handling

Some FTP severs respond to a FEAT command with 5xx status code. Squid sends
an invalid response in these cases which can confuse the client.

This patch fixes Squid to always send a valid 211 reply to client which
lists at least the EPSV and EPRT ftp commands which supported by Squid
regardless of the origin server support.

This patch also fixes a memory leak when FEAT replies processed.

This is a Measurement Factory project
src/servers/FtpServer.cc