Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 4210:c8f6248566aa
Added clearing of modules' contexts in ngx_http_named_location().
Patch by Yichun Zhang (agentzh).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 15 Oct 2011 21:42:03 +0000 |
parents | 1a94a56a4e5d |
children | 016352c19049 |
comparison
equal
deleted
inserted
replaced
4209:9679fc14c063 | 4210:c8f6248566aa |
---|---|
2543 name, &r->uri, &r->args); | 2543 name, &r->uri, &r->args); |
2544 | 2544 |
2545 r->internal = 1; | 2545 r->internal = 1; |
2546 r->content_handler = NULL; | 2546 r->content_handler = NULL; |
2547 r->loc_conf = (*clcfp)->loc_conf; | 2547 r->loc_conf = (*clcfp)->loc_conf; |
2548 | |
2549 /* clear the modules contexts */ | |
2550 ngx_memzero(r->ctx, sizeof(void *) * ngx_http_max_module); | |
2548 | 2551 |
2549 ngx_http_update_location_config(r); | 2552 ngx_http_update_location_config(r); |
2550 | 2553 |
2551 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); | 2554 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); |
2552 | 2555 |