summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-23 01:48:59 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-23 01:49:20 -0500
commit62a597d75224844be9a98952a586fc5c0406561e (patch)
treea537bd56fcc3cc901a5942397a8707cc3942eb85 /tdeio
parent9bf244dd97e89bf47dd70fe47a4f00a3f372f875 (diff)
downloadtdelibs-62a597d75224844be9a98952a586fc5c0406561e.tar.gz
tdelibs-62a597d75224844be9a98952a586fc5c0406561e.zip
Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object
Diffstat (limited to 'tdeio')
-rw-r--r--tdeio/kssl/ksslcertificate.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdeio/kssl/ksslcertificate.cc b/tdeio/kssl/ksslcertificate.cc
index e94681800..2b7bed2bb 100644
--- a/tdeio/kssl/ksslcertificate.cc
+++ b/tdeio/kssl/ksslcertificate.cc
@@ -97,6 +97,7 @@ KSSLCertificate::KSSLCertificate() {
TDEGlobal::dirs()->addResourceType("kssl", TDEStandardDirs::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) {
TDEGlobal::dirs()->addResourceType("kssl", TDEStandardDirs::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());