Unverified Commit d6cf9301 authored by Daniel Jelinski's avatar Daniel Jelinski Committed by Daniel Stenberg
Browse files

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

Fixes #2801
Closes #2812
parent c3b29746
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1949,6 +1949,8 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
        CURLcode ret = Curl_retry_request(data->easy_conn, &newurl);
        CURLcode ret = Curl_retry_request(data->easy_conn, &newurl);
        if(!ret)
        if(!ret)
          retry = (newurl)?TRUE:FALSE;
          retry = (newurl)?TRUE:FALSE;
        else if(!result)
          result = ret;


        if(retry) {
        if(retry) {
          /* if we are to retry, set the result to OK and consider the
          /* if we are to retry, set the result to OK and consider the