]> git.kaiwu.me - nginx.git/commitdiff
There's no need to normalize address returned by ngx_ptocidr().
authorRuslan Ermilov <ru@nginx.com>
Fri, 21 Dec 2012 08:44:39 +0000 (08:44 +0000)
committerRuslan Ermilov <ru@nginx.com>
Fri, 21 Dec 2012 08:44:39 +0000 (08:44 +0000)
src/http/modules/ngx_http_geo_module.c

index 1170cb337953546cb94a3180b5977fe3ccad48ab..24091bf719228a0403b98ed1584b316e0067159e 100644 (file)
@@ -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\"",