]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fixed typo in http range check
authorsb1066 <sb1066@gmail.com>
Sun, 11 Jul 2010 17:22:31 +0000 (17:22 +0000)
committersb1066 <sb1066@gmail.com>
Sun, 11 Jul 2010 17:22:31 +0000 (17:22 +0000)
src/webui/webui.c

index ffd6fb890fff2e4de592726e6f000e8efad141c1..029821fb7309b50fc0e0993e7f0b1ada736d3602 100644 (file)
@@ -444,7 +444,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
   if(file_end < 0 || file_end >= st.st_size)
     return 200;
 
-  if(file_start > 0 || file_end)
+  if(file_start > file_end)
     return 200;
 
   content_len = file_end - file_start+1;