aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index b25e7d28..a2096f41 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -995,6 +995,7 @@ impl Ssl {
/// obtain the context corresponding to the current connection
pub fn get_ssl_context(&self) -> SslContext {
let ssl_ctx = unsafe { ffi::SSL_get_SSL_CTX(self.ssl) };
+ let count = unsafe { ffi_extras::SSL_CTX_increment_refcount(ssl_ctx) };
SslContext { ctx: ssl_ctx }
}
}