We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8054dc commit 54a8d2eCopy full SHA for 54a8d2e
1 file changed
src/entry.rs
@@ -1571,9 +1571,10 @@ entry! {
1571
entry! {
1572
pub fn _SSL_CIPHER_description(
1573
cipher: *const SSL_CIPHER,
1574
- mut buf: *mut c_char,
1575
- mut size: c_int,
+ buf: *mut c_char,
+ size: c_int,
1576
) -> *mut c_char {
1577
+ let mut buf = buf;
1578
let description = try_ref_from_ptr!(cipher).description;
1579
let required_len = description.to_bytes_with_nul().len();
1580
@@ -1587,7 +1588,6 @@ entry! {
1587
1588
return allocd;
1589
}
1590
buf = allocd;
- size = required_len as i32;
1591
} else if size < (required_len as i32) {
1592
return ptr::null_mut();
1593
0 commit comments