From 988f1bbdc7590fc01c149a36eeb88a0cffd4c4bc Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Thu, 5 Mar 2009 19:51:34 +0000 Subject: [PATCH] ITS#5849 again --- CHANGES | 1 + libraries/libldap/tls_o.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f841ae536a..b4b0ddca46 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ OpenLDAP 2.4 Change Log OpenLDAP 2.4.16 Engineering Fixed libldap GnuTLS TLSVerifyCilent try (ITS#5981) Fixed libldap segfault in checking cert/DN (ITS#5976) + Fixed libldap peer cert memory leak again (ITS#5849) Fixed slapd-bdb/hdb cachesize handling (ITS#5860) Fixed slapd-ldap/meta with broken AD results (ITS#5977) Fixed slapd-ldap/meta with invalid attrs again (ITS#5959) 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