]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: test-program-client-net - Fix server-side argument count check.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 4 May 2021 00:11:34 +0000 (02:11 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 5 May 2021 18:26:46 +0000 (18:26 +0000)
src/lib-program-client/test-program-client-net.c

index 2e0f30e5cb8f8dc1cafe4fbdc674f3205f32a18c..9dc98182c3ce4a128016c3f26b5cfb8a936a5c6f 100644 (file)
@@ -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);