From 982322ac6ebe628a59ea8660c6342c0b474a2967 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Tue, 4 May 2021 02:11:34 +0200 Subject: [PATCH] lib-program-client: test-program-client-net - Fix server-side argument count check. --- src/lib-program-client/test-program-client-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-program-client/test-program-client-net.c b/src/lib-program-client/test-program-client-net.c index 2e0f30e5cb..9dc98182c3 100644 --- a/src/lib-program-client/test-program-client-net.c +++ b/src/lib-program-client/test-program-client-net.c @@ -176,7 +176,7 @@ static void test_program_run(struct test_client *client) if (array_is_created(&client->args)) { args = array_get(&client->args, &count); test_assert(count > 0); - if (count > 0) { + if (count >= 2) { if (strcmp(args[0], "test_program_success") == 0) { /* Return hello world */ i_assert(count >= 3); -- 2.47.3