aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/file.c4
1 files changed, 3 insertions, 1 deletions
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 */