commit | 523e09ee1a126176e50d1805cb344c9c9e1761c6 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Apr 11 09:15:07 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Apr 11 09:15:07 2008 +0000 |
tree | 34ba42279f55f0d2750e67ba212a7c1d3453dded | |
parent | 7c5c1dccd6969b0f623219c4c7370e4df6fa42d9 [diff] |
fix segfault
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index ed280a8..e0aefed 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -2613,6 +2613,10 @@ while (*++p == ' ') { /* void */ } + if (*p == '\0') { + return NGX_OK; + } + if (ngx_strncasecmp(p, (u_char *) "charset=", 8) != 0) { continue; }