]> git.kaiwu.me - nginx.git/commitdiff
fix segfault if upstream sends trailing ";" in "charset="
authorIgor Sysoev <igor@sysoev.ru>
Fri, 23 Mar 2007 11:33:47 +0000 (11:33 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 23 Mar 2007 11:33:47 +0000 (11:33 +0000)
src/http/ngx_http_upstream.c

index 6f548a3975bd1ec48d84d96b40e562ea8822ae18..6af214c8ee9ed83033b10b7c04cadbbafca3b206 100644 (file)
@@ -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;