diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-01-16 16:02:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-01-16 16:02:30 +0000 |
commit | 6ff8cda061d9a33da61ee733f1586813b7c1c779 (patch) | |
tree | 6c59775d4d620e26e67e6364161922b705a6eb2f /src | |
parent | 95cff3e9d0ff88815b481bfefef675e52632da5d (diff) | |
download | nginx-6ff8cda061d9a33da61ee733f1586813b7c1c779.tar.gz nginx-6ff8cda061d9a33da61ee733f1586813b7c1c779.zip |
fix range deletion
Diffstat (limited to 'src')
-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; } |