comparison src/http/modules/ngx_http_proxy_module.c @ 1688:bd85a95d60c6

fix segfault
author Igor Sysoev <igor@sysoev.ru>
date Mon, 03 Dec 2007 15:47:35 +0000
parents ca317d9b5c09
children 976db8c6fb64
comparison
equal deleted inserted replaced
1687:568d432effb9 1688:bd85a95d60c6
673 if (r->quoted_uri || r->internal) { 673 if (r->quoted_uri || r->internal) {
674 escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len, 674 escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len,
675 r->uri.len - loc_len, NGX_ESCAPE_URI); 675 r->uri.len - loc_len, NGX_ESCAPE_URI);
676 } 676 }
677 677
678 len += r->uri.len - loc_len + escape + sizeof("?") - 1 + r->args.len; 678 len += ctx->vars.uri.len + r->uri.len - loc_len + escape
679 + sizeof("?") - 1 + r->args.len;
679 } 680 }
680 681
681 ngx_http_script_flush_no_cacheable_variables(r, plcf->flushes); 682 ngx_http_script_flush_no_cacheable_variables(r, plcf->flushes);
682 683
683 if (plcf->body_set_len) { 684 if (plcf->body_set_len) {