1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 00:55:04 -05:00

multi: skip DONE state if there's no connection left for ftp wildcard

... to avoid running in that state with data->conn being NULL.
This commit is contained in:
Daniel Stenberg 2021-01-11 10:01:49 +01:00
parent 057cb05b4b
commit 48220f7e3d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1916,7 +1916,10 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
if(wc->state == CURLWC_DONE || wc->state == CURLWC_SKIP) {
/* skip some states if it is important */
multi_done(data, CURLE_OK, FALSE);
multistate(data, CURLM_STATE_DONE);
/* if there's no connection left, skip the DONE state */
multistate(data, data->conn ?
CURLM_STATE_DONE : CURLM_STATE_COMPLETED);
rc = CURLM_CALL_MULTI_PERFORM;
break;
}