[nginx] svn commit: r4994 - trunk/src/http/modules
ru at nginx.com
ru at nginx.com
Tue Dec 25 10:00:40 UTC 2012
Author: ru
Date: 2012-12-25 10:00:39 +0000 (Tue, 25 Dec 2012)
New Revision: 4994
URL: http://trac.nginx.org/nginx/changeset/4994/nginx
Log:
Geo: properly initialize ngx_cidr_t when dealing with "default".
Modified:
trunk/src/http/modules/ngx_http_geo_module.c
Modified: trunk/src/http/modules/ngx_http_geo_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_geo_module.c 2012-12-25 08:21:56 UTC (rev 4993)
+++ trunk/src/http/modules/ngx_http_geo_module.c 2012-12-25 10:00:39 UTC (rev 4994)
@@ -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];
More information about the nginx-devel
mailing list