]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: test-iostream-ssl - Properly mark client endpoints.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 16 Apr 2021 16:18:07 +0000 (18:18 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 30 Sep 2021 17:08:11 +0000 (17:08 +0000)
src/lib-ssl-iostream/test-iostream-ssl.c

index 1fb1a83a3e3e2b5908c51352b3f4a1f7b77e5cc0..4dd7679d701eb28636d45db8eb9e0ff95079455d 100644 (file)
@@ -372,6 +372,7 @@ static void test_iostream_ssl_get_buffer_avail_size(void)
        ssl_iostream_test_settings_client(&set);
        set.allow_invalid_cert = TRUE;
        client = create_test_endpoint(fd[1], &set);
+       client->client = TRUE;
 
        client->other = server;
        server->other = client;
@@ -455,6 +456,7 @@ static void test_iostream_ssl_small_packets(void)
        ssl_iostream_test_settings_client(&set);
        set.allow_invalid_cert = TRUE;
        client = create_test_endpoint(fd[1], &set);
+       client->client = TRUE;
 
        test_assert(ssl_iostream_context_init_server(server->set, &server->ctx,
                    &error) == 0);