diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-04-29 22:25:52 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-04-29 22:25:52 +0000 |
commit | 801294f873d158c831b04d3df941f01e14d6875e (patch) | |
tree | 014c88f4709e0afeb4c7d8da0a3f610eb5adca35 /ssl/s2_clnt.c | |
parent | 7185e2d6cde3fc90edc55ea2b173e4fa12abc7b1 (diff) |
Fix a couple of cases where an attempt is made to lock an already locked
mutex.
Diffstat (limited to 'ssl/s2_clnt.c')
-rw-r--r-- | ssl/s2_clnt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index e2e6a2b45f..600d8c3c15 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c @@ -438,7 +438,9 @@ static int get_server_hello(SSL *s) * cert, Free's it before we increment the reference count. */ CRYPTO_w_lock(CRYPTO_LOCK_X509); s->session->peer=s->session->cert->key->x509; - CRYPTO_add(&s->session->peer->references,1,CRYPTO_LOCK_X509); + /* Shouldn't do this: already locked */ + /*CRYPTO_add(&s->session->peer->references,1,CRYPTO_LOCK_X509);*/ + s->session->peer->references++; CRYPTO_w_unlock(CRYPTO_LOCK_X509); s->s2->conn_id_length=s->s2->tmp.conn_id_length; |