comparison src/http/modules/ngx_http_geo_module.c @ 4979:76dacc97f23c

There's no need to normalize address returned by ngx_ptocidr().
author Ruslan Ermilov <ru@nginx.com>
date Fri, 21 Dec 2012 08:44:39 +0000
parents 8b635cf36ccc
children f091722acab4
comparison
equal deleted inserted replaced
4978:55ccb9f75668 4979:76dacc97f23c
996 } 996 }
997 997
998 /* rc == NGX_BUSY */ 998 /* rc == NGX_BUSY */
999 999
1000 old = (ngx_http_variable_value_t *) 1000 old = (ngx_http_variable_value_t *)
1001 ngx_radix32tree_find(ctx->tree, cidr.u.in.addr & cidr.u.in.mask); 1001 ngx_radix32tree_find(ctx->tree, cidr.u.in.addr);
1002 1002
1003 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, 1003 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
1004 "duplicate network \"%V\", value: \"%v\", old value: \"%v\"", 1004 "duplicate network \"%V\", value: \"%v\", old value: \"%v\"",
1005 net, val, old); 1005 net, val, old);
1006 1006