From: Graham Leggett Date: Wed, 6 Oct 2010 11:03:52 +0000 (+0000) Subject: Fix a segfault when tmpfiles are encountered while cleaning. X-Git-Tag: 2.3.9~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0b07953a31bd7e373ae204553232f625e1b8a6;p=thirdparty%2Fapache%2Fhttpd.git Fix a segfault when tmpfiles are encountered while cleaning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004987 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 414b7de6623..4c9f19178c4 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -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);