diff options
| author | Steven Fackler <[email protected]> | 2016-10-26 22:15:41 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-26 22:15:41 -0700 |
| commit | 8e129af25638435f0ecfd5750d981c072550ee04 (patch) | |
| tree | 0b5ffddeaaeef880bd4f62c8d8d1b585c954068a /openssl/src | |
| parent | Stop returning an Option from cipher description (diff) | |
| download | rust-openssl-8e129af25638435f0ecfd5750d981c072550ee04.tar.xz rust-openssl-8e129af25638435f0ecfd5750d981c072550ee04.zip | |
Fix description
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index f2224b1e..a1c39248 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -788,8 +788,8 @@ impl SslCipherRef { unsafe { // SSL_CIPHER_description requires a buffer of at least 128 bytes. let mut buf = [0; 128]; - ffi::SSL_CIPHER_description(self.as_ptr(), buf.as_mut_ptr(), 128); - String::from_utf8(CStr::from_ptr(buf.as_ptr() as *const _).to_bytes().to_vec()).unwrap() + let ptr = ffi::SSL_CIPHER_description(self.as_ptr(), buf.as_mut_ptr(), 128); + String::from_utf8(CStr::from_ptr(ptr as *const _).to_bytes().to_vec()).unwrap() } } } |