aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-03-23 11:33:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-03-23 11:33:47 +0000
commit77d7f80285c93510b54df15267155d3a778e7071 (patch)
tree30cb361165636fb1232ddab228f19022ac548f08 /src
parente47cad4140ac4194fdedd058be0e25967ff43afd (diff)
downloadnginx-77d7f80285c93510b54df15267155d3a778e7071.tar.gz
nginx-77d7f80285c93510b54df15267155d3a778e7071.zip
fix segfault if upstream sends trailing ";" in "charset="
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 6f548a397..6af214c8e 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2326,6 +2326,8 @@ ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h,
r->headers_out.charset.len = h->value.data + h->value.len - p;
r->headers_out.charset.data = p;
+
+ return NGX_OK;
}
return NGX_OK;