From 260c4321d71806f51d124d79cdff8e8e496a4956 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 2 Jun 2009 16:09:44 +0000 Subject: return NULL instead of NGX_CONF_ERROR on a create conf failure --- src/core/ngx_cycle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 47d5f56d8..63eec1459 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -216,7 +216,7 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) if (module->create_conf) { rv = module->create_conf(cycle); - if (rv == NGX_CONF_ERROR) { + if (rv == NULL) { ngx_destroy_pool(pool); return NULL; } -- cgit