fix 0.0.0.0:non-zero port getpeername calls

This commit is contained in:
Benton60
2026-04-06 18:14:09 -04:00
parent 5fc7dc360a
commit 321f15c850
+1 -1
View File
@@ -383,7 +383,7 @@ impl<'a> SchemeSocket for UdpSocket<'a> {
file: &SchemeFile<Self>,
buf: &mut [u8],
) -> SyscallResult<usize> {
if self.endpoint().is_specified() {
if self.endpoint().addr.is_some() || self.endpoint().port != 0 {
return self.fpath(file, buf)
} else {
return Err(SyscallError::new(syscall::ENOTCONN));