Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http streaming: DVR file - fix wrong lseek check
  • Loading branch information
perexg committed Nov 10, 2014
1 parent 307354a commit c3c7675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/webui.c
Expand Up @@ -1172,7 +1172,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
file_start, file_end, (size_t)st.st_size);

if(file_start > 0)
if (lseek(fd, file_start, SEEK_SET)) {
if (lseek(fd, file_start, SEEK_SET) != file_start) {
close(fd);
return HTTP_STATUS_INTERNAL;
}
Expand Down

0 comments on commit c3c7675

Please sign in to comment.