Skip to content

Commit f7cdcd7

Browse files
authored
Parse unix address from sockaddr without length
1 parent 5674377 commit f7cdcd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/socket/addr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,9 @@ impl SockaddrLike for SockaddrStorage {
11891189
libc::AF_ALG => unsafe {
11901190
AlgAddr::from_raw(addr, l).map(|alg| Self { alg })
11911191
},
1192+
libc::AF_UNIX => unsafe {
1193+
UnixAddr::from_raw(addr, l).map(|su| Self { su })
1194+
},
11921195
#[cfg(feature = "net")]
11931196
libc::AF_INET => unsafe {
11941197
SockaddrIn::from_raw(addr, l).map(|sin| Self { sin })

0 commit comments

Comments
 (0)