Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.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 | d4a717592877 |
children | f33c48457d0c 08570d26c7c5 |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
2113 { | 2113 { |
2114 ngx_openssl_conf_t *oscf; | 2114 ngx_openssl_conf_t *oscf; |
2115 | 2115 |
2116 oscf = ngx_pcalloc(cycle->pool, sizeof(ngx_openssl_conf_t)); | 2116 oscf = ngx_pcalloc(cycle->pool, sizeof(ngx_openssl_conf_t)); |
2117 if (oscf == NULL) { | 2117 if (oscf == NULL) { |
2118 return NGX_CONF_ERROR; | 2118 return NULL; |
2119 } | 2119 } |
2120 | 2120 |
2121 /* | 2121 /* |
2122 * set by ngx_pcalloc(): | 2122 * set by ngx_pcalloc(): |
2123 * | 2123 * |