mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
- When using the multi interface with FTP and you asked for NOBODY, you did no
QUOTE commands and the request used the same path as the connection had already changed to, it would decide that no commands would be necessary for the "DO" action and that was not handled properly but libcurl would instead hang.
This commit is contained in:
parent
f3bd0c3fc3
commit
4e9d3c26ed
3 changed files with 16 additions and 1 deletions
|
|
@ -3026,10 +3026,14 @@ static CURLcode ftp_multi_statemach(struct connectdata *conn,
|
|||
}
|
||||
else if(rc != 0) {
|
||||
result = ftp_statemach_act(conn);
|
||||
*done = (bool)(ftpc->state == FTP_STOP);
|
||||
}
|
||||
/* if rc == 0, then select() timed out */
|
||||
|
||||
/* Check for the state outside of the Curl_socket_ready() return code checks
|
||||
since at times we are in fact already in this state when this function
|
||||
gets called. */
|
||||
*done = (bool)(ftpc->state == FTP_STOP);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue