fix range deletion

This commit is contained in:
Igor Sysoev 2009-01-16 16:02:30 +00:00
parent 95cff3e9d0
commit 6ff8cda061

View File

@ -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;
}