Mercurial > hg > nginx
changeset 3656:3d61601f3171
test binary geo range base size
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Jun 2010 10:13:51 +0000 |
parents | ec20f1f93aea |
children | fbd7dad43a4e |
files | src/http/modules/ngx_http_geo_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_geo_module.c Wed Jun 30 10:12:46 2010 +0000 +++ b/src/http/modules/ngx_http_geo_module.c Wed Jun 30 10:13:51 2010 +0000 @@ -1232,7 +1232,7 @@ header = (ngx_http_geo_header_t *) base; - if (ngx_memcmp(&ngx_http_geo_header, header, 12) != 0) { + if (size < 16 || ngx_memcmp(&ngx_http_geo_header, header, 12) != 0) { ngx_conf_log_error(NGX_LOG_WARN, cf, 0, "incompatible binary geo range base \"%s\"", name->data); goto failed;