Some servers respond to RETR in active mode with 125 (connection already
open) rather than 150 (opening connection). There's no reason why we shouldn't accept that. PR: misc/42172 MFC in: 3 days
This commit is contained in:
parent
134ce0f9cc
commit
39082bb4a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119123
@ -689,7 +689,7 @@ _ftp_transfer(conn_t *conn, const char *oper, const char *file,
|
||||
if (verbose)
|
||||
_fetch_info("initiating transfer");
|
||||
e = _ftp_cmd(conn, "%s %s", oper, _ftp_filename(file));
|
||||
if (e != FTP_OPEN_DATA_CONNECTION)
|
||||
if (e != FTP_CONNECTION_ALREADY_OPEN && e != FTP_OPEN_DATA_CONNECTION)
|
||||
goto ouch;
|
||||
|
||||
/* accept the incoming connection and go to town */
|
||||
|
Loading…
Reference in New Issue
Block a user