From: Graham Leggett Date: Wed, 29 Sep 2010 15:41:15 +0000 (+0000) Subject: htcacheclean: If the cache file format is unrecognised, remove the entry X-Git-Tag: 2.3.9~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dd0a17fa3054acf30a35bb419ff2b96384b7f9a;p=thirdparty%2Fapache%2Fhttpd.git htcacheclean: If the cache file format is unrecognised, remove the entry from the cache. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002686 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 72983ce5584..fef8e854dad 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -509,6 +509,12 @@ static int process_dir(char *path, apr_pool_t *pool) p); break; } + else { + /* We didn't recognise the format, kill the files */ + apr_file_close(fd); + delete_entry(path, d->basename, p); + break; + } } else { apr_file_close(fd);