commit | 6ff8cda061d9a33da61ee733f1586813b7c1c779 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Jan 16 16:02:30 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Jan 16 16:02:30 2009 +0000 |
tree | 6c59775d4d620e26e67e6364161922b705a6eb2f | |
parent | 95cff3e9d0ff88815b481bfefef675e52632da5d [diff] |
fix range deletion
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 5dfa58f..0b20b30 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c
@@ -699,6 +699,9 @@ { ngx_memcpy(&range[i], &range[i + 1], (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); + + a->nelts--; + break; }