From 811d96e9e210f94486ce90073fc0613b189cc368 Mon Sep 17 00:00:00 2001 From: Max Dymond Date: Tue, 30 Jan 2018 09:56:28 +0000 Subject: file: Check the return code from Curl_range and bail out on error --- lib/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/file.c') 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 */ -- cgit v1.2.3