diff options
author | Daniel Jelinski <daniel.jelinski@thomsonreuters.com> | 2018-07-30 09:30:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-07-31 01:26:08 +0200 |
commit | d6cf93011d8f9962c763cab4e8aa975567f6ea69 (patch) | |
tree | b1959342870d50998903aa8bd2f6be2ef55feb8d /lib | |
parent | c3b297466deb57016b2f6742df23062c4d611cf4 (diff) | |
download | curl-d6cf93011d8f9962c763cab4e8aa975567f6ea69.tar.gz |
retry: return error if rewind was necessary but didn't happen
Fixes #2801
Closes #2812
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index 70a406078..ee8be3971 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 |