[EventEngine] Fix bug in Tx0cp code path in posix endpoint.

This fix ensures that the iov_base pointers point to the right address.

PiperOrigin-RevId: 673923651
pull/37696/head
Vignesh Babu 3 months ago committed by Copybara-Service
parent d4f64f5705
commit e9046b2bbe
  1. 2
      src/core/lib/event_engine/posix_engine/posix_endpoint.cc

@ -236,7 +236,7 @@ msg_iovlen_type TcpZerocopySendRecord::PopulateIovs(size_t* unwind_slice_idx,
iov_size++) {
MutableSlice& slice = internal::SliceCast<MutableSlice>(
buf_.MutableSliceAt(out_offset_.slice_idx));
iov[iov_size].iov_base = slice.begin();
iov[iov_size].iov_base = slice.begin() + out_offset_.byte_idx;
iov[iov_size].iov_len = slice.length() - out_offset_.byte_idx;
*sending_length += iov[iov_size].iov_len;
++(out_offset_.slice_idx);

Loading…
Cancel
Save