]> granicus.if.org Git - apache/commitdiff
Fix a segfault when tmpfiles are encountered while cleaning.
authorGraham Leggett <minfrin@apache.org>
Wed, 6 Oct 2010 11:03:52 +0000 (11:03 +0000)
committerGraham Leggett <minfrin@apache.org>
Wed, 6 Oct 2010 11:03:52 +0000 (11:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004987 13f79535-47bb-0310-9956-ffa450edef68

support/htcacheclean.c

index 414b7de66230934e73278c803add4bc1810ebfd7..4c9f19178c4bff2a41c8419223e16dc2d247be63 100644 (file)
@@ -341,7 +341,7 @@ static int list_urls(char *path, apr_pool_t *pool, apr_off_t round)
 
             ext = strchr(info.name, '.');
 
-            if (!strcasecmp(ext, CACHE_HEADER_SUFFIX)) {
+            if (ext && !strcasecmp(ext, CACHE_HEADER_SUFFIX)) {
 
                 nextpath = apr_pstrcat(p, path, "/", info.name, NULL);