commit | 98129de874f7021e07f22f3f5bf37d8625d604c7 | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Tue Dec 25 10:00:39 2012 +0000 |
committer | Ruslan Ermilov <ru@nginx.com> | Tue Dec 25 10:00:39 2012 +0000 |
tree | 0224fcfacf6011120d816d40cdfc6c9c8c230135 | |
parent | 3d87688bc60228ca4ce311805d99d0a7908d16ce [diff] |
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 index d6bdacc..4bad08d 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c
@@ -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];