Core: improved ngx_pstrdup() error handling.

This commit is contained in:
Tatsuhiko Kubo 2014-08-01 20:04:14 +09:00
parent 88132eed54
commit 244a6a28b1

View File

@ -781,6 +781,9 @@ ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
file.len = name.len++;
file.data = ngx_pstrdup(cf->pool, &name);
if (file.data == NULL) {
return NGX_CONF_ERROR;
}
ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);