From: Zonr Chang Date: Wed, 12 Oct 2016 20:14:31 +0000 (-0700) Subject: Fix call to SSL_SESSION_up_ref(). X-Git-Tag: v2016.10.17.00~10 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b6dfac67fb4a54b8388794340003c027c5fe767a;p=folly.git 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 --- 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 } }