Skip to content

Commit

Permalink
file: Check the return code from Curl_range and bail out on error
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeister2 authored and bagder committed Jan 30, 2018
1 parent 3f8a727 commit 811d96e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 811d96e

Please sign in to comment.