]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Applied temporary workaround for bug 3405 to avoid ssl_crtd crashes when
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Jan 2012 20:08:08 +0000 (13:08 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Jan 2012 20:08:08 +0000 (13:08 -0700)
dealing with bad certificates.

src/ssl/certificate_db.cc

index d7f2955c03afc0be8ef2f2fab2f8fb7363a76a9e..381d6235ffaef058f5caf1342ca0d75ab2a15755 100644 (file)
@@ -505,7 +505,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");
 }