Mercurial > hg > nginx
changeset 4993:a8cc59ead621
Geo: properly initialize ngx_cidr_t when dealing with "default".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 25 Dec 2012 10:00:39 +0000 |
parents | 3be3de31d7dd |
children | 2c053b257269 |
files | src/http/modules/ngx_http_geo_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_geo_module.c Tue Dec 25 08:21:56 2012 +0000 +++ b/src/http/modules/ngx_http_geo_module.c Tue Dec 25 10:00:39 2012 +0000 @@ -1037,7 +1037,7 @@ #endif if (ngx_strcmp(value[0].data, "default") == 0) { - /* cidr.family = AF_INET; */ + cidr.family = AF_INET; cidr.u.in.addr = 0; cidr.u.in.mask = 0; net = &value[0];