diff --git a/trunk/darkhttpd.c b/trunk/darkhttpd.c index ca314c3..3453d0a 100644 --- a/trunk/darkhttpd.c +++ b/trunk/darkhttpd.c @@ -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");