From: Igor Sysoev Date: Fri, 16 Jan 2009 15:58:27 +0000 (+0000) Subject: repeat r2448 for range deletion X-Git-Tag: release-0.7.31~5 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=95cff3e9d0ff88815b481bfefef675e52632da5d;p=nginx.git repeat r2448 for range deletion --- 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;