]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3405: ssl_crtd crashes failing to remove certificate
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 16 Jun 2012 02:19:41 +0000 (20:19 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 16 Jun 2012 02:19:41 +0000 (20:19 -0600)
src/ssl/certificate_db.cc

index 406d0a664d7b3c9ca130afee4d420fe5a5133598..93712248e83771ef53377c10d00035e44dcc4e3f 100644 (file)
@@ -507,7 +507,7 @@ void Ssl::CertificateDb::deleteRow(const char **row, int rowIndex)
 
     subSize(filename);
     int ret = remove(filename.c_str());
-    if (ret < 0)
+    if (ret < 0 && errno != ENOENT)
         throw std::runtime_error("Failed to remove certficate file " + filename + " from db");
 }