diff options
author | John Levon <john.levon@nutanix.com> | 2021-02-01 16:10:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 16:10:22 +0000 |
commit | e20eaf66d57ef73b3e0ce8d9fe1b7a9efb3df610 (patch) | |
tree | 1da9329b81685a3b337e40257aa19ad3434183ca | |
parent | aa6fc6f2e628d8008bada973644fb56b7ee31366 (diff) | |
download | libvfio-user-e20eaf66d57ef73b3e0ce8d9fe1b7a9efb3df610.zip libvfio-user-e20eaf66d57ef73b3e0ce8d9fe1b7a9efb3df610.tar.gz libvfio-user-e20eaf66d57ef73b3e0ce8d9fe1b7a9efb3df610.tar.bz2 |
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 <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
-rw-r--r-- | test/unit-tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 }; |