From 07a0a459f4a63eb7758976d8d118cb50cb2c6dc5 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 15 Mar 2002 16:57:08 +0000 Subject: [PATCH] Another potential ap_server_root_relative failure. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93957 13f79535-47bb-0310-9956-ffa450edef68 --- modules/arch/win32/mod_isapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 331ac48a61..178f568af3 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -1232,7 +1232,7 @@ static const char *isapi_cmd_cachefile(cmd_parms *cmd, void *dummy, char *fspec; fspec = ap_server_root_relative(cmd->pool, filename); - if ((rv = apr_stat(&tmp, fspec, + if (!fspec || (rv = apr_stat(&tmp, fspec, APR_FINFO_TYPE, cmd->temp_pool)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_WARNING, rv, cmd->server, "ISAPI: unable to stat(%s), skipping", filename); -- 2.40.0