From ed9fb8ae7acdf7908d00e683987a6f81d2e017d9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 7 Apr 2025 15:44:32 -0400 Subject: [PATCH] shared/tester: Fix not detecting NULL packets When receiving packets if the iovec is NULL it means it shall be skipped. --- src/shared/tester.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/tester.c b/src/shared/tester.c index 56c8cba6f..371ccaced 100644 --- a/src/shared/tester.c +++ b/src/shared/tester.c @@ -978,6 +978,9 @@ static bool test_io_recv(struct io *io, void *user_data) if (!iov) return true; + if (test->iovcnt && !iov->iov_base) + iov = test_get_iov(test); + g_assert_cmpint(len, ==, iov->iov_len); if (memcmp(buf, iov->iov_base, len)) -- 2.47.3