Browse Source

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

pull/1/head
Timothy Pearson 3 years ago
parent
commit
62a597d752
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tdeio/kssl/ksslcertificate.cc

+ 2
- 0
tdeio/kssl/ksslcertificate.cc View File

@@ -97,6 +97,7 @@ KSSLCertificate::KSSLCertificate() {
97 97
 	TDEGlobal::dirs()->addResourceType("kssl", TDEStandardDirs::kde_default("data") + "kssl");
98 98
 	#ifdef KSSL_HAVE_SSL
99 99
 		d->m_cert = NULL;
100
+		d->m_cert_crl = NULL;
100 101
 	#endif
101 102
 }
102 103
 
@@ -107,6 +108,7 @@ KSSLCertificate::KSSLCertificate(const KSSLCertificate& x) {
107 108
 	TDEGlobal::dirs()->addResourceType("kssl", TDEStandardDirs::kde_default("data") + "kssl");
108 109
 	#ifdef KSSL_HAVE_SSL
109 110
 		d->m_cert = NULL;
111
+		d->m_cert_crl = NULL;
110 112
 		setCert(KOSSL::self()->X509_dup(const_cast<KSSLCertificate&>(x).getCert()));
111 113
 		KSSLCertChain *c = x.d->_chain.replicate();
112 114
 		setChain(c->rawChain());

Loading…
Cancel
Save