mirror of
https://github.com/curl/curl.git
synced 2026-07-23 11:07:17 +03:00
file: Check the return code from Curl_range and bail out on error
This commit is contained in:
parent
3f8a727611
commit
811d96e9e2
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue