From: Howard Chu Date: Mon, 2 Mar 2009 17:43:38 +0000 (+0000) Subject: ITS#5849 patch was wrong, don't X509_free session cert X-Git-Tag: ACLCHECK_0~766 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a1861fd162259a035d34c9bce23eb49731413f56;p=openldap ITS#5849 patch was wrong, don't X509_free session cert --- 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; }