Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
August 16, 2012 09:02AM
Author: mdounin
Date: 2012-08-16 13:01:41 +0000 (Thu, 16 Aug 2012)
New Revision: 4817
URL: http://trac.nginx.org/nginx/changeset/4817/nginx

Log:
Geo: fixed handling of ranges without default set.

The bug had appeared in 0.8.43 (r3653). Patch by Weibin Yao.


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-08-16 12:05:58 UTC (rev 4816)
+++ trunk/src/http/modules/ngx_http_geo_module.c 2012-08-16 13:01:41 UTC (rev 4817)
@@ -400,15 +400,15 @@
}
}

+ if (ctx.high.default_value == NULL) {
+ ctx.high.default_value = &ngx_http_variable_null_value;
+ }
+
geo->u.high = ctx.high;

var->get_handler = ngx_http_geo_range_variable;
var->data = (uintptr_t) geo;

- if (ctx.high.default_value == NULL) {
- ctx.high.default_value = &ngx_http_variable_null_value;
- }
-
ngx_destroy_pool(ctx.temp_pool);
ngx_destroy_pool(pool);


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

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

Anonymous User 1119 August 16, 2012 09:02AM



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

Online Users

Guests: 115
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