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/http/modules/ngx_http_random_index_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_random_index_module.c') diff --git a/src/http/modules/ngx_http_random_index_module.c b/src/http/modules/ngx_http_random_index_module.c index 7ddb819af..bb5544ae6 100644 --- a/src/http/modules/ngx_http_random_index_module.c +++ b/src/http/modules/ngx_http_random_index_module.c @@ -280,7 +280,7 @@ ngx_http_random_index_create_loc_conf(ngx_conf_t *cf) conf = ngx_palloc(cf->pool, sizeof(ngx_http_random_index_loc_conf_t)); if (conf == NULL) { - return NGX_CONF_ERROR; + return NULL; } conf->enable = NGX_CONF_UNSET; -- cgit