Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rennergade committed May 5, 2024
1 parent 27307d5 commit b7d8593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/safeposix/syscalls/net_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ impl Cage {
}
}
};

if let Err(_) = acceptedresult {
match Errno::from_discriminant(interface::get_errno()) {
Ok(i) => {
Expand All @@ -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,
Expand Down

0 comments on commit b7d8593

Please sign in to comment.