mirror of
https://github.com/curl/curl.git
synced 2026-07-23 11:37:16 +03:00
ftp: accept all 2xx responses to the PORT command
This commit is contained in:
parent
d771b44e53
commit
ab85ac5eda
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue