From: Igor Sysoev Date: Fri, 11 Apr 2008 09:15:07 +0000 (+0000) Subject: fix segfault X-Git-Tag: release-0.6.30~15 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=523e09ee1a126176e50d1805cb344c9c9e1761c6;p=nginx.git fix segfault --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index ed280a8c9..e0aefed6f 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2613,6 +2613,10 @@ ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h, while (*++p == ' ') { /* void */ } + if (*p == '\0') { + return NGX_OK; + } + if (ngx_strncasecmp(p, (u_char *) "charset=", 8) != 0) { continue; }