Skip to content

Commit

Permalink
Refactor SSL certificate verification in Client::processSslErrors() m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
srilakshmikanthanp committed Jan 18, 2024
1 parent 93a7602 commit e1946c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/syncing/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void Client::processSslErrors(const QList<QSslError>& errors) {
const auto certificate = this->m_ssl_socket->peerCertificate();

// if any error occurred
if (errors.length() > 0 && !this->verifyCert(certificate)) {
if (!this->verifyCert(certificate)) {
return this->m_ssl_socket->abort();
}

Expand Down

0 comments on commit e1946c4

Please sign in to comment.