comparison src/mail/ngx_mail_auth_http_module.c @ 2912:c7d57b539248

return NULL instead of NGX_CONF_ERROR on a create conf failure
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Jun 2009 16:09:44 +0000
parents a96a8c916b0c
children fb4f7605505f
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
1300 { 1300 {
1301 ngx_mail_auth_http_conf_t *ahcf; 1301 ngx_mail_auth_http_conf_t *ahcf;
1302 1302
1303 ahcf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_auth_http_conf_t)); 1303 ahcf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_auth_http_conf_t));
1304 if (ahcf == NULL) { 1304 if (ahcf == NULL) {
1305 return NGX_CONF_ERROR; 1305 return NULL;
1306 } 1306 }
1307 1307
1308 ahcf->timeout = NGX_CONF_UNSET_MSEC; 1308 ahcf->timeout = NGX_CONF_UNSET_MSEC;
1309 1309
1310 ahcf->file = cf->conf_file->file.name.data; 1310 ahcf->file = cf->conf_file->file.name.data;