summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-23 01:48:59 -0500
committerSlávek Banko <slavek.banko@axis.cz>2017-07-22 15:56:45 +0200
commit6a8935327be55a6bc2d3bd8e40a9a0982f8f53cc (patch)
tree9ca760f846535440449411d4f853f0962f5cae4f /kio
parentf4726e5f8db52562f86070e395fe8946bc3f91dc (diff)
downloadtdelibs-6a8935327be55a6bc2d3bd8e40a9a0982f8f53cc.tar.gz
tdelibs-6a8935327be55a6bc2d3bd8e40a9a0982f8f53cc.zip
Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object
(cherry picked from commit 62a597d75224844be9a98952a586fc5c0406561e)
Diffstat (limited to 'kio')
-rw-r--r--kio/kssl/ksslcertificate.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kio/kssl/ksslcertificate.cc b/kio/kssl/ksslcertificate.cc
index e4a3fbfb5..a6c53da3c 100644
--- a/kio/kssl/ksslcertificate.cc
+++ b/kio/kssl/ksslcertificate.cc
@@ -97,6 +97,7 @@ KSSLCertificate::KSSLCertificate() {
KGlobal::dirs()->addResourceType("kssl", KStandardDirs::kde_default("data") + "kssl");
#ifdef KSSL_HAVE_SSL
d->m_cert = NULL;
+ d->m_cert_crl = NULL;
#endif
}
@@ -107,6 +108,7 @@ KSSLCertificate::KSSLCertificate(const KSSLCertificate& x) {
KGlobal::dirs()->addResourceType("kssl", KStandardDirs::kde_default("data") + "kssl");
#ifdef KSSL_HAVE_SSL
d->m_cert = NULL;
+ d->m_cert_crl = NULL;
setCert(KOSSL::self()->X509_dup(const_cast<KSSLCertificate&>(x).getCert()));
KSSLCertChain *c = x.d->_chain.replicate();
setChain(c->rawChain());