From 50e2246acd9b529249f333cc470c416763ef308c Mon Sep 17 00:00:00 2001 From: Barry Date: Fri, 21 Jan 2022 14:26:56 -0500 Subject: [PATCH] typo caused incorrect frees --- src/acvp_kdf_tls13.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acvp_kdf_tls13.c b/src/acvp_kdf_tls13.c index a9c40e16..e17d854f 100644 --- a/src/acvp_kdf_tls13.c +++ b/src/acvp_kdf_tls13.c @@ -613,8 +613,8 @@ static ACVP_RESULT acvp_kdf_tls13_init_tc(ACVP_CTX *ctx, static ACVP_RESULT acvp_kdf_tls13_release_tc(ACVP_KDF_TLS13_TC *stc) { if (stc->psk) free(stc->psk); if (stc->dhe) free(stc->dhe); - if (stc->c_hello_rand) free(stc->s_hello_rand); - if (stc->s_hello_rand) free(stc->c_hello_rand); + if (stc->c_hello_rand) free(stc->c_hello_rand); + if (stc->s_hello_rand) free(stc->s_hello_rand); if (stc->fin_c_hello_rand) free(stc->fin_c_hello_rand); if (stc->fin_s_hello_rand) free(stc->fin_s_hello_rand); if (stc->c_early_traffic_secret) free(stc->c_early_traffic_secret);