From cd8afb68b8bc189a0ab618536918e93f1ef864a6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 9 Nov 2021 02:12:15 +0000 Subject: Fix error path in add_keypair_file for sbearssl SNI policy Signed-off-by: Laurent Bercot --- src/sbearssl/sbearssl_sni_policy_add_keypair_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sbearssl/sbearssl_sni_policy_add_keypair_file.c b/src/sbearssl/sbearssl_sni_policy_add_keypair_file.c index 6334f64..a2e1dda 100644 --- a/src/sbearssl/sbearssl_sni_policy_add_keypair_file.c +++ b/src/sbearssl/sbearssl_sni_policy_add_keypair_file.c @@ -38,7 +38,7 @@ int sbearssl_sni_policy_add_keypair_file (sbearssl_sni_policy_context *pol, char sbearssl_skey_wipe(&node.skey, pol->storage.s) ; err1: if (gabase) genalloc_setlen(sbearssl_cert, &pol->certga, gabase) ; - else genalloc_free(sbearssl_sni_policy_node, &pol->mapga) ; + else genalloc_free(sbearssl_sni_policy_node, &pol->certga) ; err0: if (sabase) pol->storage.len = sabase ; else stralloc_free(&pol->storage) ; -- cgit v1.2.3