]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
retry: return error if rewind was necessary but didn't happen
authorDaniel Jelinski <daniel.jelinski@thomsonreuters.com>
Mon, 30 Jul 2018 07:30:10 +0000 (09:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Jul 2018 23:26:08 +0000 (01:26 +0200)
Fixes #2801
Closes #2812

lib/multi.c

index 70a406078fdb3aaebfe908b042389b333981f0bc..ee8be39714af0a5a32011406fa9d35797da6b0a8 100644 (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