httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1004987 - /httpd/httpd/trunk/support/htcacheclean.c
Date Wed, 06 Oct 2010 11:03:52 GMT
Author: minfrin
Date: Wed Oct  6 11:03:52 2010
New Revision: 1004987

URL: http://svn.apache.org/viewvc?rev=1004987&view=rev
Log:
Fix a segfault when tmpfiles are encountered while cleaning.

Modified:
    httpd/httpd/trunk/support/htcacheclean.c

Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htcacheclean.c?rev=1004987&r1=1004986&r2=1004987&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Wed Oct  6 11:03:52 2010
@@ -341,7 +341,7 @@ static int list_urls(char *path, apr_poo
 
             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);
 



Mime
View raw message