mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
transfer: only reset the FTP wildcard engine in CLEAR state
To avoid the state machine to start over and redownload all the files *again*. Reported-by: lkordos on github Regression from 843b3baa3e3cb228 (shipped in 8.1.0) Bisect-by: Dan Fandrich Fixes #11775 Closes #12156
This commit is contained in:
parent
8cb95850c0
commit
df9aea22c2
@ -1430,8 +1430,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
wc = data->wildcard;
|
||||
if((wc->state < CURLWC_INIT) ||
|
||||
(wc->state >= CURLWC_CLEAN)) {
|
||||
if(wc->state < CURLWC_INIT) {
|
||||
if(wc->ftpwc)
|
||||
wc->dtor(wc->ftpwc);
|
||||
Curl_safefree(wc->pattern);
|
||||
|
Loading…
x
Reference in New Issue
Block a user