From: Igor Sysoev Date: Fri, 23 Mar 2007 11:33:47 +0000 (+0000) Subject: fix segfault if upstream sends trailing ";" in "charset=" X-Git-Tag: release-0.5.16~2 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=77d7f80285c93510b54df15267155d3a778e7071;p=nginx.git fix segfault if upstream sends trailing ";" in "charset=" --- 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;