Fix a couple of cases where an attempt is made to lock an already locked

mutex.
This commit is contained in:
Dr. Stephen Henson
1999-04-29 22:25:52 +00:00
parent 7185e2d6cd
commit 801294f873
2 changed files with 13 additions and 5 deletions

View File

@@ -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;