Skip to content

Commit

Permalink
fix Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Nov 13, 2023
1 parent 135d260 commit 0a789b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ impl ControlMessageOwned {
},
#[cfg(any(target_os = "linux"))]
(libc::SOL_TLS, libc::TLS_GET_RECORD_TYPE) => {
let content_type = ptr::read_unaligned(p as *const u8);
let content_type = unsafe { ptr::read_unaligned(p as *const u8) };
ControlMessageOwned::TlsGetRecordType(content_type.into())
},
(_, _) => {
Expand Down

0 comments on commit 0a789b9

Please sign in to comment.