diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 34fff172..87f4d7bf 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -413,9 +413,7 @@ int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb) { } int SSL_set_generate_session_id(SSL *ssl, GEN_SESSION_CB cb) { - CRYPTO_w_lock(CRYPTO_LOCK_SSL); ssl->generate_session_id = cb; - CRYPTO_w_unlock(CRYPTO_LOCK_SSL); return 1; }