Mercurial > hg > nginx
comparison src/mail/ngx_mail_ssl_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 | 38cb2238db13 |
children | d6285ff81d35 |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
164 { | 164 { |
165 ngx_mail_ssl_conf_t *scf; | 165 ngx_mail_ssl_conf_t *scf; |
166 | 166 |
167 scf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_ssl_conf_t)); | 167 scf = ngx_pcalloc(cf->pool, sizeof(ngx_mail_ssl_conf_t)); |
168 if (scf == NULL) { | 168 if (scf == NULL) { |
169 return NGX_CONF_ERROR; | 169 return NULL; |
170 } | 170 } |
171 | 171 |
172 /* | 172 /* |
173 * set by ngx_pcalloc(): | 173 * set by ngx_pcalloc(): |
174 * | 174 * |