From: Alex Rousskov Date: Tue, 31 Jan 2012 20:08:08 +0000 (-0700) Subject: Applied temporary workaround for bug 3405 to avoid ssl_crtd crashes when X-Git-Tag: BumpSslServerFirst.take04~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=193b0395401cf8bd99a65584894c70a6a970e2a7;p=thirdparty%2Fsquid.git Applied temporary workaround for bug 3405 to avoid ssl_crtd crashes when dealing with bad certificates. --- diff --git a/src/ssl/certificate_db.cc b/src/ssl/certificate_db.cc index d7f2955c03..381d6235ff 100644 --- a/src/ssl/certificate_db.cc +++ b/src/ssl/certificate_db.cc @@ -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"); }