mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
chore(openssl):fix increase X509 reference count
This commit is contained in:
parent
e132431889
commit
7841271b4a
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ pub fn ssl_add_chain_cert(ssl: &mut SslRef, cert: &X509Ref) -> Result<(), ErrorS
|
||||||
cvt(SSL_ctrl(
|
cvt(SSL_ctrl(
|
||||||
ssl.as_ptr(),
|
ssl.as_ptr(),
|
||||||
SSL_CTRL_CHAIN_CERT,
|
SSL_CTRL_CHAIN_CERT,
|
||||||
0,
|
1, // increase the ref count of X509 so that ssl can outlive X509StoreRef
|
||||||
cert.as_ptr() as *mut c_void,
|
cert.as_ptr() as *mut c_void,
|
||||||
))?;
|
))?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue