Skip to content

Commit 73c29af

Browse files
qwandorrtzoeller
authored andcommitted
Fix socket address family check for SysControlAddr::from_raw.
1 parent 8d4c48a commit 73c29af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,7 @@ pub mod sys_control {
22322232
return None;
22332233
}
22342234
}
2235-
if (*addr).sa_family as i32 != libc::AF_INET6 as i32 {
2235+
if (*addr).sa_family as i32 != libc::AF_SYSTEM as i32 {
22362236
return None;
22372237
}
22382238
Some(SysControlAddr(*(addr as *const libc::sockaddr_ctl)))

0 commit comments

Comments
 (0)