Skip to content

Commit d3cc30c

Browse files
committed
Fix socket address family check for SysControlAddr::from_raw.
1 parent 5a122f8 commit d3cc30c

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
@@ -2259,7 +2259,7 @@ pub mod sys_control {
22592259
return None;
22602260
}
22612261
}
2262-
if (*addr).sa_family as i32 != libc::AF_INET6 as i32 {
2262+
if (*addr).sa_family as i32 != libc::AF_SYSTEM as i32 {
22632263
return None;
22642264
}
22652265
Some(SysControlAddr(*(addr as *const libc::sockaddr_ctl)))

0 commit comments

Comments
 (0)