Skip to content

Commit

Permalink
https://github.com/nix-rust/nix/issues/1325
Browse files Browse the repository at this point in the history
  • Loading branch information
philipstears committed Nov 24, 2020
1 parent 1794a47 commit 131d02a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,7 @@ pub fn recvmmsg<'a, I>(

Ok(output
.into_iter()
.take(ret as usize)
.zip(addresses.iter().map(|addr| unsafe{addr.assume_init()}))
.zip(results.into_iter())
.map(|((mmsghdr, address), (msg_controllen, cmsg_buffer))| {
Expand Down

0 comments on commit 131d02a

Please sign in to comment.