diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-03-15 17:59:51 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-03-15 17:59:51 +0100 |
commit | feaf0b80721e3864da8761517c572252f35a26eb (patch) | |
tree | ea3cac743888662eec31bc0bb8ccd34c4900da1a /modules/cache | |
parent | Style touchup (diff) | |
download | apache2-feaf0b80721e3864da8761517c572252f35a26eb.tar.xz apache2-feaf0b80721e3864da8761517c572252f35a26eb.zip |
Another potential ap_server_root_relative failure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache')
-rw-r--r-- | modules/cache/mod_file_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index 9cdbcf3e80..ac93365cae 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -196,10 +196,10 @@ static void cache_the_file(cmd_parms *cmd, const char *filename, int mmap) const char *fspec; fspec = ap_server_root_relative(cmd->pool, filename); - if ((rc = apr_stat(&tmp.finfo, fspec, APR_FINFO_MIN, - cmd->temp_pool)) != APR_SUCCESS) { + if (!fspec || (rc = apr_stat(&tmp.finfo, fspec, APR_FINFO_MIN, + cmd->temp_pool)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_WARNING, rc, cmd->server, - "mod_file_cache: unable to stat(%s), skipping", fspec); + "mod_file_cache: unable to stat(%s), skipping", filename); return; } if (tmp.finfo.filetype != APR_REG) { |