diff options
author | 2003-11-11 22:15:18 +0000 | |
---|---|---|
committer | 2003-11-11 22:15:18 +0000 | |
commit | cdc51833b6c06c4d2bb61dab574d6d6c40e4a806 (patch) | |
tree | f9fc9a67a1a98fe5ec5af41fc8a54135caae46f8 /lib/libssl/ssl_sess.c | |
parent | import 0.9.7c (diff) | |
download | wireguard-openbsd-cdc51833b6c06c4d2bb61dab574d6d6c40e4a806.tar.xz wireguard-openbsd-cdc51833b6c06c4d2bb61dab574d6d6c40e4a806.zip |
merge 0.9.7c; minor bugsfixes;
API addition: ERR_release_err_state_table
[make includes before you build libssl/libcrypto]
Diffstat (limited to 'lib/libssl/ssl_sess.c')
-rw-r--r-- | lib/libssl/ssl_sess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index a505e388fbe..7016c87d3b2 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -78,11 +78,11 @@ SSL_SESSION *SSL_get1_session(SSL *ssl) /* Need to lock this all up rather than just use CRYPTO_add so that * somebody doesn't free ssl->session between when we check it's * non-null and when we up the reference count. */ - CRYPTO_r_lock(CRYPTO_LOCK_SSL_SESSION); + CRYPTO_w_lock(CRYPTO_LOCK_SSL_SESSION); sess = ssl->session; if(sess) sess->references++; - CRYPTO_r_unlock(CRYPTO_LOCK_SSL_SESSION); + CRYPTO_w_unlock(CRYPTO_LOCK_SSL_SESSION); return(sess); } |