Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Hugo Landau <hlandau@devever.net>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25297)
/*
* Note we _dont_ take the keylog_lock here
* This is intentional, because we only free the keylog lock
- * During SSL_CTX_free, in which we already posess the lock, so
+ * During SSL_CTX_free, in which we already posess the lock, so
* Theres no need to grab it again here
*/
if (oper == BIO_CB_FREE)
keylog_bio = NULL;
-out:
return ret;
}
return ret;
err:
SSL_CTX_free(ret);
+#ifndef OPENSSL_NO_SSLKEYLOG
BIO_free(keylog_bio);
+#endif
return NULL;
}