Mercurial > hg > nginx
comparison src/core/ngx_cycle.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 | 5ff1ae0eada7 |
children | d9c46f98b09f |
comparison
equal
deleted
inserted
replaced
2911:32b444fa2ca4 | 2912:c7d57b539248 |
---|---|
214 | 214 |
215 module = ngx_modules[i]->ctx; | 215 module = ngx_modules[i]->ctx; |
216 | 216 |
217 if (module->create_conf) { | 217 if (module->create_conf) { |
218 rv = module->create_conf(cycle); | 218 rv = module->create_conf(cycle); |
219 if (rv == NGX_CONF_ERROR) { | 219 if (rv == NULL) { |
220 ngx_destroy_pool(pool); | 220 ngx_destroy_pool(pool); |
221 return NULL; | 221 return NULL; |
222 } | 222 } |
223 cycle->conf_ctx[ngx_modules[i]->index] = rv; | 223 cycle->conf_ctx[ngx_modules[i]->index] = rv; |
224 } | 224 } |