diff --git a/lib/multi.c b/lib/multi.c index 70a406078f..ee8be39714 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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