diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-12-21 08:44:39 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-12-21 08:44:39 +0000 |
commit | a0caa70c98fcda923970c9edcf8caad60cb8e40a (patch) | |
tree | 6a7e54a20dfd65ac41bd6850b2703496fdfbd8cc | |
parent | 717acb74a72140537e62de50f91d557af02f2f6f (diff) | |
download | nginx-a0caa70c98fcda923970c9edcf8caad60cb8e40a.tar.gz nginx-a0caa70c98fcda923970c9edcf8caad60cb8e40a.zip |
There's no need to normalize address returned by ngx_ptocidr().
-rw-r--r-- | src/http/modules/ngx_http_geo_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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\"", |