From 05f0fb9f6acc34c82a082d7668572828925694e7 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 31 Aug 2015 20:29:57 +0100 Subject: Add X509_up_ref function. Reviewed-by: Rich Salz --- ssl/s3_clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssl/s3_clnt.c') 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; -- cgit v1.2.1