diff options
Diffstat (limited to 'src/core/ngx_palloc.c')
-rw-r--r-- | src/core/ngx_palloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_palloc.c b/src/core/ngx_palloc.c index a1f9d59cd..3bb0b3598 100644 --- a/src/core/ngx_palloc.c +++ b/src/core/ngx_palloc.c @@ -102,7 +102,7 @@ ngx_palloc(ngx_pool_t *pool, size_t size) } if ((size_t) (p->end - m) < NGX_ALIGNMENT) { - p->current = p->next; + pool->current = p->next; } if (p->next == NULL) { @@ -117,8 +117,8 @@ ngx_palloc(ngx_pool_t *pool, size_t size) return NULL; } - if (p->current == NULL) { - p->current = n; + if (pool->current == NULL) { + pool->current = n; } p->next = n; |