diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-01-16 19:02:30 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-01-16 19:02:30 +0300 |
commit | 6ff8cda061d9a33da61ee733f1586813b7c1c779 (patch) | |
tree | 6c59775d4d620e26e67e6364161922b705a6eb2f /src/http/modules/ngx_http_geo_module.c | |
parent | 95cff3e9d0ff88815b481bfefef675e52632da5d (diff) |
fix range deletion
Diffstat (limited to 'src/http/modules/ngx_http_geo_module.c')
-rw-r--r-- | src/http/modules/ngx_http_geo_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 5dfa58f4d..0b20b3092 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -699,6 +699,9 @@ ngx_http_geo_delete_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx, { ngx_memcpy(&range[i], &range[i + 1], (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); + + a->nelts--; + break; } |