# HG changeset patch # User Ruslan Ermilov # Date 1356429639 0 # Node ID a8cc59ead6214461336f1409aafc8a96c8a693f0 # Parent 3be3de31d7ddf6be8f7eecb293eb80f95eded410 Geo: properly initialize ngx_cidr_t when dealing with "default". diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c --- 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_ht #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];