diff options
Diffstat (limited to 'ssl/t1_clnt.c')
-rw-r--r-- | ssl/t1_clnt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/t1_clnt.c b/ssl/t1_clnt.c index 9ad518f9f4..3eb3ae56c5 100644 --- a/ssl/t1_clnt.c +++ b/ssl/t1_clnt.c @@ -79,11 +79,15 @@ SSL_METHOD *TLSv1_client_method(void) if (init) { + CRYPTO_w_lock(CRYPTO_LOCK_SSL_METHOD); + memcpy((char *)&TLSv1_client_data,(char *)tlsv1_base_method(), sizeof(SSL_METHOD)); TLSv1_client_data.ssl_connect=ssl3_connect; TLSv1_client_data.get_ssl_method=tls1_get_client_method; init=0; + + CRYPTO_w_unlock(CRYPTO_LOCK_SSL_METHOD); } return(&TLSv1_client_data); } |