From a1861fd162259a035d34c9bce23eb49731413f56 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 2 Mar 2009 17:43:38 +0000 Subject: [PATCH] ITS#5849 patch was wrong, don't X509_free session cert --- libraries/libldap/tls_o.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index 7936a2db14..fc49529f92 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -421,7 +421,7 @@ tlso_session_my_dn( tls_session *sess, struct berval *der_dn ) xn = X509_get_subject_name(x); der_dn->bv_len = i2d_X509_NAME( xn, NULL ); der_dn->bv_val = xn->bytes->data; - X509_free(x); + /* Don't X509_free, the session is still using it */ return 0; } -- 2.39.5