]> git.kaiwu.me - nginx.git/commitdiff
repeat r2448 for range deletion
authorIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 15:58:27 +0000 (15:58 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 15:58:27 +0000 (15:58 +0000)
src/http/modules/ngx_http_geo_module.c

index cbf67c2dc03461e81f5074e09955a7dc7354ba51..5dfa58f4d1f1ecd6beffd4e0edb736d30bcb89d9 100644 (file)
@@ -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;