Commit 20f6cbee authored by iamwwc's avatar iamwwc
Browse files

remove duplicate as cast

parent 21bf31dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3109,7 +3109,7 @@ impl SslRef {
    pub fn add_chain_certificate_pem(&mut self, chain: &[u8]) -> Result<(), ErrorStack> {
        let cert = X509::from_pem(chain)?;
        let ret = unsafe {
            ffi::SSL_add_chain_certificate_pem(self.as_ptr(), cert.as_ptr() as *mut _ as *mut _)
            ffi::SSL_add_chain_certificate_pem(self.as_ptr(), cert.as_ptr() as *mut _ )
        };
        if ret == 1 {
            Ok(())