From: Max Dymond Date: Tue, 30 Jan 2018 09:56:28 +0000 (+0000) Subject: file: Check the return code from Curl_range and bail out on error X-Git-Tag: curl-7_59_0~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=811d96e9e210f94486ce90073fc0613b189cc368;p=curl file: Check the return code from Curl_range and bail out on error --- diff --git a/lib/file.c b/lib/file.c index ac611e6a1..528f34afb 100644 --- a/lib/file.c +++ b/lib/file.c @@ -456,7 +456,9 @@ static CURLcode file_do(struct connectdata *conn, bool *done) } /* Check whether file range has been specified */ - Curl_range(conn); + result = Curl_range(conn); + if(result) + return result; /* Adjust the start offset in case we want to get the N last bytes * of the stream iff the filesize could be determined */