Return EADDRNOTAVAIL in UDP scheme if dup called with unspecified address

This commit is contained in:
Bendeguz Pisch
2026-02-04 10:35:27 +01:00
parent f5e177cb1b
commit 05d01a9351
+1 -1
View File
@@ -241,7 +241,7 @@ impl<'a> SchemeSocket for UdpSocket<'a> {
if remote_endpoint.is_specified() {
remote_endpoint
} else {
udp_handle.data
return Err(SyscallError::new(syscall::EADDRNOTAVAIL));
},
))
} else {