summaryrefslogtreecommitdiff
path: root/src/sys/socket/addr.rs
diff options
context:
space:
mode:
authorYuchen Wu <yuchen@cloudflare.com>2021-04-01 17:39:30 -0700
committerYuchen Wu <yuchen@cloudflare.com>2021-04-07 08:00:35 -0700
commit50fc2dbdfac25b228d7f7907a5ef471ac226b190 (patch)
tree5f8dffc96f65cd80b28228dda170829f7f9e0e3f /src/sys/socket/addr.rs
parent6af11c1e70b02e1af36fdc339238d3a117fd3a94 (diff)
downloadnix-50fc2dbdfac25b228d7f7907a5ef471ac226b190.zip
Fix spurious errors using `sendmmsg` with multiple cmsgs
Before this fix, the buffer that holds cmsgs may move due to the resize() call. That causes msg_hdr pointing to invalid memory, which ends up breaking the sendmmsg() call, resulting in EINVAL. This change fixes it by avoiding re-allocating the buffers.
Diffstat (limited to 'src/sys/socket/addr.rs')
0 files changed, 0 insertions, 0 deletions