mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
test binary geo range base size
This commit is contained in:
parent
3b0ddc2097
commit
ffcc2f4a9e
1 changed files with 1 additions and 1 deletions
|
|
@ -1232,7 +1232,7 @@ ngx_http_geo_include_binary_base(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue