]> git.sur5r.net Git - openldap/commitdiff
ITS#5849 patch was wrong, don't X509_free session cert
authorHoward Chu <hyc@openldap.org>
Mon, 2 Mar 2009 17:43:38 +0000 (17:43 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 2 Mar 2009 17:43:38 +0000 (17:43 +0000)
libraries/libldap/tls_o.c

index 7936a2db14892d445cb826cb38fd0861c5bb3015..fc49529f927e095ee12e93a8fb030295a2515a99 100644 (file)
@@ -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;
 }