projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3158c87
)
These should be write-locks, not read-locks.
author
Geoff Thorpe
<geoff@openssl.org>
Mon, 8 Sep 2003 16:01:38 +0000
(16:01 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Mon, 8 Sep 2003 16:01:38 +0000
(16:01 +0000)
ssl/ssl_sess.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_sess.c
b/ssl/ssl_sess.c
index a8668e42e640dcbd0bad09c44b49413c0753c40f..681a7d77cdb40a4fba2af0240534adcc3b5f279f 100644
(file)
--- a/
ssl/ssl_sess.c
+++ b/
ssl/ssl_sess.c
@@
-81,11
+81,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);
}