From 62a597d75224844be9a98952a586fc5c0406561e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 23 Oct 2015 01:48:59 -0500 Subject: Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object --- tdeio/kssl/ksslcertificate.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tdeio/kssl/ksslcertificate.cc') 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(x).getCert())); KSSLCertChain *c = x.d->_chain.replicate(); setChain(c->rawChain()); -- cgit v1.2.1