diff --git a/src/safeposix/syscalls/net_calls.rs b/src/safeposix/syscalls/net_calls.rs index 81d1a82ec..f4a2e9ed2 100644 --- a/src/safeposix/syscalls/net_calls.rs +++ b/src/safeposix/syscalls/net_calls.rs @@ -1161,7 +1161,7 @@ impl Cage { } } }; - + if let Err(_) = acceptedresult { match Errno::from_discriminant(interface::get_errno()) { Ok(i) => { @@ -1187,7 +1187,7 @@ impl Cage { // if we get here we have an accepted socket let acceptedsock = acceptedresult.unwrap(); - + let mut newaddr = sockhandle.localaddr.unwrap().clone(); let newport = match NET_METADATA._reserve_localport(newaddr.addr(), 0, sockhandle.protocol, sockhandle.domain, false) { Ok(portnum) => portnum,