aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 981b3bcd..183cf19d 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -951,7 +951,7 @@ impl Ssl {
return None;
}
- unsafe { String::from_utf8(CStr::from_ptr(name).to_bytes().to_vec()).ok() }
+ unsafe { String::from_utf8(CStr::from_ptr(name as *const _).to_bytes().to_vec()).ok() }
}
/// change the context corresponding to the current connection