Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4994 - trunk/src/http/modules

Anonymous User
December 25, 2012 05:02AM
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];

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4994 - trunk/src/http/modules

Anonymous User 857 December 25, 2012 05:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready