From 98129de874f7021e07f22f3f5bf37d8625d604c7 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 25 Dec 2012 10:00:39 +0000 Subject: [PATCH] Geo: properly initialize ngx_cidr_t when dealing with "default". --- src/http/modules/ngx_http_geo_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index d6bdacc00..4bad08d4f 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -1037,7 +1037,7 @@ ngx_http_geo_cidr(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx, #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];