mirror of
https://github.com/simon987/sist2.git
synced 2025-12-13 15:29:04 +00:00
bugfixes & refactoring
This commit is contained in:
@@ -153,7 +153,7 @@ int chunked_response_file(const char *filename, const char *mime,
|
||||
// %d-
|
||||
ends = MIN(starts + CHUNK_SIZE, length);
|
||||
}
|
||||
if (ends >= length || starts >= length || starts < 0) {
|
||||
if (ends > length || starts >= length || starts < 0) {
|
||||
close(fd);
|
||||
return OCS_INTERNAL_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user