Skip to content

Commit 2378f12

Browse files
JarredAllenasomers
andauthored
Correctly let the kernel set the length on BSDs
Co-authored-by: Alan Somers <[email protected]>
1 parent 23125cb commit 2378f12

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/sys/socket/addr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,6 @@ impl SockaddrLike for UnixAddr {
775775
target_os = "redox",
776776
))] {
777777
self.sun_len = new_length as u8;
778-
} else {
779-
self.sun.sun_len = new_length as u8;
780778
}
781779
};
782780
Ok(())

0 commit comments

Comments
 (0)