mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
SSL error handling: Remove unnecessary confusing code
I'm confident this is unnecessary. The original bug in #3283 was to call ignoreSslErrors() without an argument in the 'accept' case, which meant ignoring *all* subsequent SSL errors. With that fixed, explicitly aborting the reply and resetting QNAM is not needed since not ignoring the error will lead to the SSL handshake failing. See also:75b38d1a2f
(workaround introduced)89376e14d6
(real fix)76ce5adbf0
(cherry-pick of workaround)
This commit is contained in:
parent
4ed9edb104
commit
c922015521
1 changed files with 2 additions and 5 deletions
|
@ -366,11 +366,8 @@ void Account::slotHandleSslErrors(QNetworkReply *reply , QList<QSslError> errors
|
|||
_rejectedCertificates.append(error.certificate());
|
||||
}
|
||||
}
|
||||
// if during normal operation, a new certificate was MITM'ed, and the user does not
|
||||
// ACK it, the running request must be aborted and the QNAM must be reset, to not
|
||||
// treat the new cert as granted. See bug #3283
|
||||
reply->abort();
|
||||
resetNetworkAccessManager();
|
||||
|
||||
// Not calling ignoreSslErrors will make the SSL handshake fail.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue