]> git.kaiwu.me - nginx.git/commitdiff
Core: fixed error handling on ngx_conf_full_name() failure.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 6 Apr 2015 22:32:05 +0000 (01:32 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 6 Apr 2015 22:32:05 +0000 (01:32 +0300)
src/core/ngx_file.c

index ae23735112fdd02cccd4674184f124eb56a5cd1d..ad2b3c953fa65d2fcba280ad5f1a5136ec6941e8 100644 (file)
@@ -356,7 +356,7 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
     }
 
     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;