Skip to content
Snippets Groups Projects
Verified Commit f2b86e98 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Ensure that getpeername and getsockname return a sockaddr of family AF_INET

parent 588f032f
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,8 @@ unsafe fn inner_get_name(
trace!("path: {}", ::core::str::from_utf8_unchecked(&part));
(*address).sa_family = AF_INET;
let data = slice::from_raw_parts_mut(
&mut (*address).sa_data as *mut _ as *mut u8,
(*address).sa_data.len(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment