Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -2450,6 +2450,12 @@ int qd_message_body_data_buffers(qd_message_body_data_t *body_data, pn_raw_buffe
buffers[idx].size = qd_buffer_size(buffer) - (buffer == body_data->payload.buffer ? body_data->payload.offset : 0);
buffers[idx].offset = 0;

if (buffer == body_data->last_buffer) {
// Don't process beyond the end of this body_data section
actual_count++;
break;
}

buffer = DEQ_NEXT(buffer);
actual_count++;
idx++;
Expand Down