mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
pop3: Fixed continuous wait when using --ftp-list
Don't initiate a transfer when using --ftp-list.
This commit is contained in:
parent
57ccdfa8d2
commit
e450f66a02
@ -1085,6 +1085,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
|
|||||||
{
|
{
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
|
struct POP3 *pop3 = data->state.proto.pop3;
|
||||||
struct pop3_conn *pop3c = &conn->proto.pop3c;
|
struct pop3_conn *pop3c = &conn->proto.pop3c;
|
||||||
struct pingpong *pp = &pop3c->pp;
|
struct pingpong *pp = &pop3c->pp;
|
||||||
|
|
||||||
@ -1105,6 +1106,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
|
|||||||
the strip counter here so that these bytes won't be delivered. */
|
the strip counter here so that these bytes won't be delivered. */
|
||||||
pop3c->strip = 2;
|
pop3c->strip = 2;
|
||||||
|
|
||||||
|
if(pop3->transfer == FTPTRANSFER_BODY) {
|
||||||
/* POP3 download */
|
/* POP3 download */
|
||||||
Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL, -1, NULL);
|
Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL, -1, NULL);
|
||||||
|
|
||||||
@ -1125,6 +1127,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
|
|||||||
/* Reset the cache size */
|
/* Reset the cache size */
|
||||||
pp->cache_size = 0;
|
pp->cache_size = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* End of DO phase */
|
/* End of DO phase */
|
||||||
state(conn, POP3_STOP);
|
state(conn, POP3_STOP);
|
||||||
|
Loading…
Reference in New Issue
Block a user