We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c66ff6 commit d992f78Copy full SHA for d992f78
src/sys/unix/uds/mod.rs
@@ -67,6 +67,8 @@ fn unix_addr(address: &SocketAddr) -> (libc::sockaddr_un, libc::socklen_t) {
67
};
68
69
let mut addrlen = path_offset(&sockaddr) + addr.len();
70
+ // +1 for null byte at the end of the path, not needed for abstract
71
+ // namespaces (which start with a null byte).
72
match addr.first() {
73
Some(&0) | None => {}
74
Some(_) => addrlen += 1,
0 commit comments