summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-11-09 02:12:15 +0000
committerLaurent Bercot <ska@appnovation.com>2021-11-09 02:12:15 +0000
commitcd8afb68b8bc189a0ab618536918e93f1ef864a6 (patch)
tree944d72f4f923460dc068669dd2390fc1dac7aee7 /src
parentf0a82421183cc6dcc18a3f7e5776143ed10a226f (diff)
downloads6-networking-cd8afb68b8bc189a0ab618536918e93f1ef864a6.tar.xz
Fix error path in add_keypair_file for sbearssl SNI policy
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/sbearssl/sbearssl_sni_policy_add_keypair_file.c2
1 files changed, 1 insertions, 1 deletions
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) ;