mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06: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],
|
||||
(a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t));
|
||||
|
||||
a->nelts--;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user