From b6dfac67fb4a54b8388794340003c027c5fe767a Mon Sep 17 00:00:00 2001 From: Zonr Chang Date: Wed, 12 Oct 2016 13:14:31 -0700 Subject: [PATCH] Fix call to SSL_SESSION_up_ref(). Summary: `SSL_SESSION_up_ref()` in both BoringSSL and OpenSSL 1.1.0 takes a `SSL_SESSION*`. Closes https://github.com/facebook/folly/pull/493 Reviewed By: yfeldblum Differential Revision: D4009706 Pulled By: Orvid fbshipit-source-id: 68ea201821e7a6d5835a79b34187344ba251e239 --- folly/ssl/detail/SSLSessionImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/ssl/detail/SSLSessionImpl.cpp b/folly/ssl/detail/SSLSessionImpl.cpp index 7a83c1e7..d93fcaf9 100644 --- a/folly/ssl/detail/SSLSessionImpl.cpp +++ b/folly/ssl/detail/SSLSessionImpl.cpp @@ -99,7 +99,7 @@ void SSLSessionImpl::upRef() { #if defined(OPENSSL_IS_102) || defined(OPENSSL_IS_101) CRYPTO_add(&session_->references, 1, CRYPTO_LOCK_SSL_SESSION); #elif defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_110) - SSL_SESSION_up_ref(&session_); + SSL_SESSION_up_ref(session_); #endif } } -- 2.34.1