mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
ftp: response timeout bug in "quote" sending
The FTP implementation was missing a timestamp reset point, making the waiting for responses after sending a post-transfer "QUOTE" command not working as supposedly. This bug was introduced in 7.20.0
This commit is contained in:
parent
d76874a665
commit
4a1384a8b4
@ -3203,6 +3203,8 @@ CURLcode ftp_sendquote(struct connectdata *conn, struct curl_slist *quote)
|
|||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
int ftpcode;
|
int ftpcode;
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
|
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
||||||
|
struct pingpong *pp = &ftpc->pp;
|
||||||
|
|
||||||
item = quote;
|
item = quote;
|
||||||
while(item) {
|
while(item) {
|
||||||
@ -3222,6 +3224,8 @@ CURLcode ftp_sendquote(struct connectdata *conn, struct curl_slist *quote)
|
|||||||
|
|
||||||
FTPSENDF(conn, "%s", cmd);
|
FTPSENDF(conn, "%s", cmd);
|
||||||
|
|
||||||
|
pp->response = Curl_tvnow(); /* timeout relative now */
|
||||||
|
|
||||||
result = Curl_GetFTPResponse(&nread, conn, &ftpcode);
|
result = Curl_GetFTPResponse(&nread, conn, &ftpcode);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user