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
+++ 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];