We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc2347 commit 37e6e49Copy full SHA for 37e6e49
src/entry.rs
@@ -1470,7 +1470,7 @@ type SSL_CIPHER = crate::SslCipher;
1470
entry! {
1471
pub fn _SSL_CIPHER_find(_ssl: *const SSL, ptr: *const c_uchar) -> *const SSL_CIPHER {
1472
let slice = try_slice!(ptr, 2);
1473
- let id = (slice[0] as u16) << 8 | (slice[1] as u16);
+ let id = ((slice[0] as u16) << 8) | (slice[1] as u16);
1474
crate::SslCipher::find_by_id(rustls::CipherSuite::from(id))
1475
.map(|cipher| cipher as *const SSL_CIPHER)
1476
.unwrap_or_else(ptr::null)
0 commit comments