| commit | f8fdbcaaa256a061d1561691e0bdec203fce259f | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Fri Jan 16 15:44:39 2009 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Fri Jan 16 15:44:39 2009 +0000 |
| tree | b17a52a6a826e92d892923b91d0af2baf5233704 | |
| parent | 91cf00da1787ea1386dba82112fa9b1a0511eff2 [diff] |
fix range start for ranges those spread in two or more slots
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 310317a..2ada4c8 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c
@@ -521,7 +521,12 @@ for (n = start; n < end; n += 0x10000) { h = n >> 16; - s = n & 0xffff; + + if (n == start) { + s = n & 0xffff; + } else { + s = 0; + } if ((n | 0xffff) > end) { e = end & 0xffff;