From 69c210e2b5b6a5ab1edbb86a8cd513f7dd2c1102 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Wed, 3 Mar 2021 17:32:31 -0500 Subject: QUIC: Fix 1.1.1 GitHub CI --- test/sslapitest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sslapitest.c b/test/sslapitest.c index a200ec82f2..d14a8393ba 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -7365,10 +7365,10 @@ static int test_quic_api_version(int clnt, int srvr) &clientssl, NULL, NULL)) || !TEST_true(SSL_set_quic_transport_params(serverssl, (unsigned char*)server_str, - sizeof(server_str))) + strlen(server_str)+1)) || !TEST_true(SSL_set_quic_transport_params(clientssl, (unsigned char*)client_str, - sizeof(client_str))) + strlen(client_str)+1)) || !TEST_true(SSL_set_app_data(serverssl, clientssl)) || !TEST_true(SSL_set_app_data(clientssl, serverssl)) || !TEST_true(test_quic_api_set_versions(clientssl, clnt)) @@ -7384,10 +7384,10 @@ static int test_quic_api_version(int clnt, int srvr) goto end; SSL_get_peer_quic_transport_params(serverssl, &peer_str, &peer_str_len); - if (!TEST_mem_eq(peer_str, peer_str_len, client_str, sizeof(client_str))) + if (!TEST_mem_eq(peer_str, peer_str_len, client_str, strlen(client_str)+1)) goto end; SSL_get_peer_quic_transport_params(clientssl, &peer_str, &peer_str_len); - if (!TEST_mem_eq(peer_str, peer_str_len, server_str, sizeof(server_str))) + if (!TEST_mem_eq(peer_str, peer_str_len, server_str, strlen(server_str)+1)) goto end; /* Deal with two NewSessionTickets */ -- 2.35.3