mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Fix (unsigned < 0) comparison.
This commit is contained in:
parent
74fcaf5859
commit
3829ceade8
@ -1837,7 +1837,7 @@ static void process_get(struct connection *conn)
|
||||
from = to - conn->range_end + 1;
|
||||
|
||||
/* check for wrapping */
|
||||
if (from < 0 || from > to) from = 0;
|
||||
if (from > to) from = 0;
|
||||
}
|
||||
else errx(1, "internal error - from/to mismatch");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user