[Pkg-owncloud-commits] [owncloud-client] 20/159: SSLButton: Fix a crash
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri May 1 13:05:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 9c05150c121a06e58e172facf509fd188c35d59d
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Mon Mar 23 18:28:51 2015 +0100
SSLButton: Fix a crash
Made with danimo.
Attempt to fix a crash seen on breakpad reports.
(cc06b990-0c10-40eb-bcec-4d3902150320)
---
src/gui/sslbutton.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gui/sslbutton.cpp b/src/gui/sslbutton.cpp
index 226dc54..d7768b5 100644
--- a/src/gui/sslbutton.cpp
+++ b/src/gui/sslbutton.cpp
@@ -190,6 +190,12 @@ void SslButton::updateAccountState(AccountState *accountState)
setToolTip(tr("This connection is encrypted using %1 bit %2.\n").arg(cipher.usedBits()).arg(cipher.name()));
QMenu *menu = new QMenu(this);
QList<QSslCertificate> chain = account->sslConfiguration().peerCertificateChain();
+
+ if (chain.isEmpty()) {
+ qWarning() << "empty certificate chain";
+ return;
+ }
+
menu->addAction(tr("Certificate information:"))->setEnabled(false);
QList<QSslCertificate> tmpChain;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list