mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
file: Check the return code from Curl_range and bail out on error
This commit is contained in:
parent
3f8a727611
commit
811d96e9e2
@ -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…
Reference in New Issue
Block a user