Wizard: Reset the QSslConfiguration before checking the server
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 24 Oct 2018 09:57:08 +0000 (11:57 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:14 +0000 (10:58 +0100)
Because a previous call with another demain might have set some
config for another server.

Issue #6832

src/gui/owncloudsetupwizard.cpp

index efffcb6a73f559919cc6ed70dec476179be7c9bc..0af0094b5eb123b7cc5948fb88ee39a690740f96 100644 (file)
@@ -153,6 +153,8 @@ void OwncloudSetupWizard::slotCheckServer(const QString &urlString)
     // Reset the proxy which might had been determined previously in ConnectionValidator::checkServerAndAuth()
     // when there was a previous account.
     account->networkAccessManager()->setProxy(QNetworkProxy(QNetworkProxy::NoProxy));
+    // And also reset the QSslConfiguration, for the same reason (#6832)
+    account->setSslConfiguration({});
 
     // Lookup system proxy in a thread https://github.com/owncloud/client/issues/2993
     if (ClientProxy::isUsingSystemDefault()) {