summaryrefslogtreecommitdiffhomepage
path: root/src/mail/ngx_mail_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-26 15:54:29 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-26 15:54:29 +0000
commitf7f963d7792fdf19ad11888d3a3e7460ea88dfd0 (patch)
tree33fa551ca1e0e3d61474dad1bf148de45338b7b7 /src/mail/ngx_mail_core_module.c
parentdf30d3db5655ce895726efd7ddff81f971727dbe (diff)
downloadnginx-f7f963d7792fdf19ad11888d3a3e7460ea88dfd0.tar.gz
nginx-f7f963d7792fdf19ad11888d3a3e7460ea88dfd0.tar.bz2
merge r2903, r2911, r2912, r3002:
fix various failures handling
Diffstat (limited to 'src/mail/ngx_mail_core_module.c')
-rw-r--r--src/mail/ngx_mail_core_module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mail/ngx_mail_core_module.c b/src/mail/ngx_mail_core_module.c
index d0addb059..bd2c916d5 100644
--- a/src/mail/ngx_mail_core_module.c
+++ b/src/mail/ngx_mail_core_module.c
@@ -120,20 +120,20 @@ ngx_mail_core_create_main_conf(ngx_conf_t *cf)
cmcf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_core_main_conf_t));
if (cmcf == NULL) {
- return NGX_CONF_ERROR;
+ return NULL;
}
if (ngx_array_init(&cmcf->servers, cf->pool, 4,
sizeof(ngx_mail_core_srv_conf_t *))
!= NGX_OK)
{
- return NGX_CONF_ERROR;
+ return NULL;
}
if (ngx_array_init(&cmcf->listen, cf->pool, 4, sizeof(ngx_mail_listen_t))
!= NGX_OK)
{
- return NGX_CONF_ERROR;
+ return NULL;
}
return cmcf;