aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-04-11 09:15:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-04-11 09:15:07 +0000
commit523e09ee1a126176e50d1805cb344c9c9e1761c6 (patch)
tree34ba42279f55f0d2750e67ba212a7c1d3453dded /src
parent7c5c1dccd6969b0f623219c4c7370e4df6fa42d9 (diff)
downloadnginx-523e09ee1a126176e50d1805cb344c9c9e1761c6.tar.gz
nginx-523e09ee1a126176e50d1805cb344c9c9e1761c6.zip
fix segfault
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 4 insertions, 0 deletions
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;
}