diff options
author | Bodo Möller <bodo@openssl.org> | 2002-09-23 14:28:12 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-09-23 14:28:12 +0000 |
commit | 4e33db9a3f312e06c6697236c550914dd4bd7a04 (patch) | |
tree | 724fc5d0a0c8b19f279ff459d4c5dca3ae5888c3 /ssl/s3_srvr.c | |
parent | ca9a114f7aeedd7db70385433cb40c647e67ba2f (diff) |
really fix race condition
PR: 262
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r-- | ssl/s3_srvr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 20d716fb1b..22614f7c9a 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -152,11 +152,15 @@ SSL_METHOD *SSLv3_server_method(void) if (init) { + CRYPTO_w_lock(CRYPTO_LOCK_SSL_METHOD); + memcpy((char *)&SSLv3_server_data,(char *)sslv3_base_method(), sizeof(SSL_METHOD)); SSLv3_server_data.ssl_accept=ssl3_accept; SSLv3_server_data.get_ssl_method=ssl3_get_server_method; init=0; + + CRYPTO_w_unlock(CRYPTO_LOCK_SSL_METHOD); } return(&SSLv3_server_data); } |