[ftp] Terminate processing after receiving an error
authorSergey Vlasov <vsu@altlinux.ru>
Wed, 30 Jul 2008 19:27:09 +0000 (20:27 +0100)
committerMichael Brown <mcb30@etherboot.org>
Wed, 30 Jul 2008 19:27:09 +0000 (20:27 +0100)
commite6cd16946a2c52f39d3ea308ab1fb80a85c9d0a3
treec22c9ece59c7283954459e7428d0a380b85a17d4
parent8f4c2b4a4c5c3a3d29a102a758e75b65cadf9946
[ftp] Terminate processing after receiving an error

When an error reply (not 1xx, 2xx or 3xx) was received, ftp_reply()
invoked ftp_done() to close connections, but did not return, and the
rest of code in this function could try to send commands to the closed
control connection.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
src/net/tcp/ftp.c