1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

retry: return error if rewind was necessary but didn't happen

Fixes #2801
Closes #2812
This commit is contained in:
Daniel Jelinski 2018-07-30 09:30:10 +02:00 committed by Daniel Stenberg
parent c3b297466d
commit d6cf93011d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1949,6 +1949,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
CURLcode ret = Curl_retry_request(data->easy_conn, &newurl);
if(!ret)
retry = (newurl)?TRUE:FALSE;
else if(!result)
result = ret;
if(retry) {
/* if we are to retry, set the result to OK and consider the