mirror of
https://github.com/nginx/nginx.git
synced 2025-08-01 11:16:14 +08:00
fix range deletion
This commit is contained in:
parent
95cff3e9d0
commit
6ff8cda061
@ -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],
|
ngx_memcpy(&range[i], &range[i + 1],
|
||||||
(a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t));
|
(a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t));
|
||||||
|
|
||||||
|
a->nelts--;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user