diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-06-02 16:09:44 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-02 16:09:44 +0000 |
| commit | 260c4321d71806f51d124d79cdff8e8e496a4956 (patch) | |
| tree | a6fe073d5f57d49b05562f9ce020b3a532c85c8c /src/mail/ngx_mail_proxy_module.c | |
| parent | 05822df0cb9dcf9909f4d82be7ce1becd108eeac (diff) | |
| download | nginx-260c4321d71806f51d124d79cdff8e8e496a4956.tar.gz nginx-260c4321d71806f51d124d79cdff8e8e496a4956.tar.bz2 | |
return NULL instead of NGX_CONF_ERROR on a create conf failure
Diffstat (limited to 'src/mail/ngx_mail_proxy_module.c')
| -rw-r--r-- | src/mail/ngx_mail_proxy_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/ngx_mail_proxy_module.c b/src/mail/ngx_mail_proxy_module.c index 193df8ada..b408ed7d3 100644 --- a/src/mail/ngx_mail_proxy_module.c +++ b/src/mail/ngx_mail_proxy_module.c @@ -1061,7 +1061,7 @@ ngx_mail_proxy_create_conf(ngx_conf_t *cf) pcf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_proxy_conf_t)); if (pcf == NULL) { - return NGX_CONF_ERROR; + return NULL; } pcf->enable = NGX_CONF_UNSET; |
