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:
parent
057cb05b4b
commit
48220f7e3d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user