This commit is contained in:
Alexander Sorokin 2025-12-16 15:55:22 -06:00 committed by GitHub
commit f3afc5c38e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ ngx_palloc_small(ngx_pool_t *pool, size_t size, ngx_uint_t align)
m = ngx_align_ptr(m, NGX_ALIGNMENT);
}
if ((size_t) (p->d.end - m) >= size) {
if (p->d.end - size >= m) {
p->d.last = m + size;
return m;