mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
fix ngx_strlcasestrn()
This commit is contained in:
parent
e94b22b143
commit
f3aed53c9d
@ -703,6 +703,10 @@ ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n)
|
|||||||
{
|
{
|
||||||
ngx_uint_t c1, c2;
|
ngx_uint_t c1, c2;
|
||||||
|
|
||||||
|
if (s1 <= last) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
c2 = (ngx_uint_t) *s2++;
|
c2 = (ngx_uint_t) *s2++;
|
||||||
c2 = (c2 >= 'A' && c2 <= 'Z') ? (c2 | 0x20) : c2;
|
c2 = (c2 >= 'A' && c2 <= 'Z') ? (c2 | 0x20) : c2;
|
||||||
last -= n;
|
last -= n;
|
||||||
|
Loading…
Reference in New Issue
Block a user