aboutsummaryrefslogtreecommitdiff
path: root/src/mail/ngx_mail_imap_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-06-17 15:00:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-06-17 15:00:30 +0000
commit7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1 (patch)
tree90325238fc9a9d9a7e8818e76b60cc9e011242aa /src/mail/ngx_mail_imap_module.c
parentc2eb2cf4cba5f47fbc33eebe279f0d3855401421 (diff)
downloadnginx-7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1.tar.gz
nginx-7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1.zip
*) back out r2040
*) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
Diffstat (limited to 'src/mail/ngx_mail_imap_module.c')
-rw-r--r--src/mail/ngx_mail_imap_module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mail/ngx_mail_imap_module.c b/src/mail/ngx_mail_imap_module.c
index 3889c9248..2d72397eb 100644
--- a/src/mail/ngx_mail_imap_module.c
+++ b/src/mail/ngx_mail_imap_module.c
@@ -183,7 +183,7 @@ ngx_mail_imap_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
}
}
- p = ngx_palloc(cf->pool, size);
+ p = ngx_pnalloc(cf->pool, size);
if (p == NULL) {
return NGX_CONF_ERROR;
}
@@ -216,7 +216,7 @@ ngx_mail_imap_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
size += sizeof(" STARTTLS") - 1;
- p = ngx_palloc(cf->pool, size);
+ p = ngx_pnalloc(cf->pool, size);
if (p == NULL) {
return NGX_CONF_ERROR;
}
@@ -233,7 +233,7 @@ ngx_mail_imap_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
size = (auth - conf->capability.data) + sizeof(CRLF) - 1
+ sizeof(" STARTTLS LOGINDISABLED") - 1;
- p = ngx_palloc(cf->pool, size);
+ p = ngx_pnalloc(cf->pool, size);
if (p == NULL) {
return NGX_CONF_ERROR;
}