Mercurial > hg > nginx-vendor-1-0
diff src/core/ngx_string.c @ 476:09b45263c817 NGINX_0_7_50
nginx 0.7.50
*) Change: a segmentation fault might occur in worker process, if the
$arg_... variables were used; the bug had appeared in 0.7.48.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 06 Apr 2009 00:00:00 +0400 |
parents | 3a4102b00f97 |
children | ed5e10fb40fc |
line wrap: on
line diff
--- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -703,17 +703,13 @@ ngx_strlcasestrn(u_char *s1, u_char *las { ngx_uint_t c1, c2; - if (s1 <= last) { - return NULL; - } - c2 = (ngx_uint_t) *s2++; c2 = (c2 >= 'A' && c2 <= 'Z') ? (c2 | 0x20) : c2; last -= n; do { do { - if (s1 == last) { + if (s1 >= last) { return NULL; }