From 320e758410dc5e9c8fe4753eef4befe54c416e37 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 21 Dec 2012 08:44:39 +0000 Subject: [PATCH] There's no need to normalize address returned by ngx_ptocidr(). --- src/http/modules/ngx_http_geo_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 1170cb337..24091bf71 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -998,7 +998,7 @@ ngx_http_geo_cidr(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx, /* rc == NGX_BUSY */ old = (ngx_http_variable_value_t *) - ngx_radix32tree_find(ctx->tree, cidr.u.in.addr & cidr.u.in.mask); + ngx_radix32tree_find(ctx->tree, cidr.u.in.addr); ngx_conf_log_error(NGX_LOG_WARN, cf, 0, "duplicate network \"%V\", value: \"%v\", old value: \"%v\"",