From 3584cb3e5609b5c8b7692a46c56f818a0b8faaf4 Mon Sep 17 00:00:00 2001 From: Xu Che Date: Thu, 11 Aug 2022 20:25:04 +0800 Subject: [PATCH] Fix path validation for abstract unix socket. --- src/sys/unix/uds/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sys/unix/uds/mod.rs b/src/sys/unix/uds/mod.rs index 8e28a9573..6e4c52916 100644 --- a/src/sys/unix/uds/mod.rs +++ b/src/sys/unix/uds/mod.rs @@ -48,6 +48,7 @@ cfg_os_poll! { "path must be no longer than libc::sockaddr_un.sun_path", )); } + (Some(&0), _) => {} (_, Ordering::Greater) | (_, Ordering::Equal) => { return Err(io::Error::new( io::ErrorKind::InvalidInput,