From e20eaf66d57ef73b3e0ce8d9fe1b7a9efb3df610 Mon Sep 17 00:00:00 2001 From: John Levon Date: Mon, 1 Feb 2021 16:10:22 +0000 Subject: test_process_command_free_passed_fds: fix fd array size (#294) We need to initialize .client_max_fds to get the fd array allocated properly in process_request(). Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- test/unit-tests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit-tests.c b/test/unit-tests.c index 1949b89..ddcf02d 100644 --- a/test/unit-tests.c +++ b/test/unit-tests.c @@ -345,6 +345,7 @@ test_process_command_free_passed_fds(void **state __attribute__((unused))) { vfu_ctx_t vfu_ctx = { .conn_fd = 0xcafebabe, + .client_max_fds = ARRAY_SIZE(fds), .migration = (struct migration*)0x8badf00d }; -- cgit v1.1