Skip to content

Commit

Permalink
ftp: accept all 2xx responses to the PORT command
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Monnerat committed Feb 11, 2015
1 parent d771b44 commit ab85ac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ftp.c
Expand Up @@ -2102,7 +2102,9 @@ static CURLcode ftp_state_port_resp(struct connectdata *conn,
ftpport fcmd = (ftpport)ftpc->count1;
CURLcode result = CURLE_OK;

if(ftpcode != 200) {
/* The FTP spec tells a positive response should have code 200.
Be more permissive here to tolerate deviant servers. */
if(ftpcode / 100 != 2) {
/* the command failed */

if(EPRT == fcmd) {
Expand Down

0 comments on commit ab85ac5

Please sign in to comment.