From a1cad5ae8bcaaca899fb2bb5e2624a48ccb33eb3 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 19 Aug 2003 11:43:11 +0000 Subject: 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 --- lib/libfetch/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libfetch') diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index ffc4462..f21aac4 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -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 */ -- cgit v1.1