mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
7aaad6b7e2
Original diff from @notgull in #118349, small changes from me. on OpenBSD, getsockname(2) returns the actual size of the socket address, and not the len of the content. Figure out the length for ourselves. see https://marc.info/?l=openbsd-bugs&m=170105481926736&w=2 Fixes #116523