# HG changeset patch # User Ruslan Ermilov # Date 1356079479 0 # Node ID 76dacc97f23cf4a1c950effef9cd8c7ea900e1ba # Parent 55ccb9f75668f94851193070d60342f2d51c0b75 There's no need to normalize address returned by ngx_ptocidr(). diff -r 55ccb9f75668 -r 76dacc97f23c src/http/modules/ngx_http_geo_module.c --- a/src/http/modules/ngx_http_geo_module.c Thu Dec 20 19:04:28 2012 +0000 +++ b/src/http/modules/ngx_http_geo_module.c Fri Dec 21 08:44:39 2012 +0000 @@ -998,7 +998,7 @@ /* 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\"",