projects
/
nginx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
upgrade to 0.7.32
[nginx.git]
/
nginx
/
src
/
http
/
modules
/
ngx_http_geo_module.c
diff --git
a/nginx/src/http/modules/ngx_http_geo_module.c
b/nginx/src/http/modules/ngx_http_geo_module.c
index
5535eb2
..
bd6499e
100644
(file)
--- a/
nginx/src/http/modules/ngx_http_geo_module.c
+++ b/
nginx/src/http/modules/ngx_http_geo_module.c
@@
-636,8
+636,8
@@
ngx_http_geo_add_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
range = a->elts;
- ngx_memcpy(&range[i +
2], &range[i + 1
],
- (a->nelts -
2
- i) * sizeof(ngx_http_geo_range_t));
+ ngx_memcpy(&range[i +
1], &range[i
],
+ (a->nelts -
1
- i) * sizeof(ngx_http_geo_range_t));
range[i + 1].start = (u_short) (e + 1);