# HG changeset patch # User Sergey Kandaurov # Date 1428359525 -10800 # Node ID e37ec0a33901d74ed9c7ab62432afa33c5c1682f # Parent 643f2ce02f1cde9526fb762b50e698cd55dd2af2 Core: fixed error handling on ngx_conf_full_name() failure. diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -356,7 +356,7 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, n } if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) { - return NULL; + return NGX_CONF_ERROR; } path->conf_file = cf->conf_file->file.name.data;