Fix NULL rmw buffer after the latest changes and add a testcase for it

This commit is contained in:
Vitaliy Filippov
2020-10-24 18:29:19 +03:00
parent 4872f617a4
commit 720985e4c7
4 changed files with 82 additions and 17 deletions
+1
View File
@@ -58,6 +58,7 @@ void osd_messenger_t::outbox_push(osd_op_t *cur_op)
to_outbox.push_back(NULL);
for (int i = 0; i < cur_op->iov.count; i++)
{
assert(cur_op->iov.buf[i].iov_base);
to_send_list.push_back(cur_op->iov.buf[i]);
to_outbox.push_back(i == cur_op->iov.count-1 ? cur_op : NULL);
}