diff options
Diffstat (limited to 'ssl/s3_clnt.c')
-rw-r--r-- | ssl/s3_clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index e7bbfc90ed..ba35fb9ca5 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -1359,7 +1359,7 @@ int ssl3_get_server_certificate(SSL *s) s->session->peer_type = i; X509_free(s->session->peer); - CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509); + X509_up_ref(x); s->session->peer = x; s->session->verify_result = s->verify_result; |