commit | d5ba36fdadfced3a83304371e0d26641af3925d0 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Apr 06 11:42:42 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Apr 06 11:42:42 2009 +0000 |
tree | 568cb859f44fa877426a8c899ec97d5fe98979fa | |
parent | 8d9e4c847d389b1af5d7b95b5bbbb9ed86a3dea4 [diff] [blame] |
backout r2677 and fix ngx_strlcasestrn() again
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 8f2a171..9b63891 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c
@@ -703,17 +703,13 @@ { 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; }