Fix crash on KSSLCertificate deallocation when a CRL is held in the KSSLCertificate object

(cherry picked from commit 62a597d752)
pull/16/head
Timothy Pearson 9 years ago committed by Slávek Banko
parent aeb2bd0fe6
commit 855198315f

@ -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());

Loading…
Cancel
Save