Unverified Commit 811d96e9 authored by Max Dymond's avatar Max Dymond Committed by Daniel Stenberg
Browse files

file: Check the return code from Curl_range and bail out on error

parent 3f8a7276
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 */