ITS#5849 patch was wrong, don't X509_free session cert

This commit is contained in:
Howard Chu 2009-03-02 17:43:38 +00:00
parent 7198869342
commit a1861fd162

View 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;
}