mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
backout r2677 and fix ngx_strlcasestrn() again
This commit is contained in:
parent
8d9e4c847d
commit
d5ba36fdad
@ -703,17 +703,13 @@ ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user