From 4ce4dd747965ee0b1186e3798805c121d7b00de3 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 11 Dec 2023 14:30:54 +0100 Subject: [PATCH] Use correct size for memset --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index f4fd1b18e..68c4e0efe 100644 --- a/tests/api.c +++ b/tests/api.c @@ -8771,8 +8771,8 @@ static int test_wolfSSL_CTX_add_session_ext( /* connection 1 - first connection */ fprintf(stderr, "\tconnect: %s: j=%d\n", param->tls_version, j); - XMEMSET(&client_cb, 0, sizeof(callback_functions)); - XMEMSET(&server_cb, 0, sizeof(callback_functions)); + XMEMSET(&client_cb, 0, sizeof(client_cb)); + XMEMSET(&server_cb, 0, sizeof(server_cb)); client_cb.method = param->client_meth; server_cb.method = param->server_meth;