aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-16 15:58:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-01-16 15:58:27 +0000
commit95cff3e9d0ff88815b481bfefef675e52632da5d (patch)
treec4abfc57af51b8d3930e355d0bb30f8ef5de7b2b /src
parent287c22f788d6f451500c3e19214d25431cd88ac9 (diff)
downloadnginx-95cff3e9d0ff88815b481bfefef675e52632da5d.tar.gz
nginx-95cff3e9d0ff88815b481bfefef675e52632da5d.zip
repeat r2448 for range deletion
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_geo_module.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index cbf67c2dc..5dfa58f4d 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -670,7 +670,12 @@ ngx_http_geo_delete_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
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;