From 0da9e1c3e000c5f08266ae86f605a3322ac58f16 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sun, 13 Aug 2017 13:45:59 +0200 Subject: [PATCH] dbhub: Don't tolerate host name mismatch errors These were only accepted for debug purposes and shouldn't occur in an actual installation. --- src/RemoteDatabase.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/RemoteDatabase.cpp b/src/RemoteDatabase.cpp index 75e48364..c6ec1de2 100644 --- a/src/RemoteDatabase.cpp +++ b/src/RemoteDatabase.cpp @@ -199,11 +199,10 @@ void RemoteDatabase::gotError(QNetworkReply* reply, const QList& erro delete reinterpret_cast(reply->property("file").value()); // Are there any errors in here that aren't about self-signed certificates and non-matching hostnames? - // TODO What about the hostname mismatch? Can we remove that from the list of ignored errors later? bool serious_errors = false; foreach(const QSslError& error, errors) { - if(error.error() != QSslError::SelfSignedCertificate && error.error() != QSslError::HostNameMismatch) + if(error.error() != QSslError::SelfSignedCertificate) { serious_errors = true; break;