mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-09 15:51:45 +02:00
32 lines
976 B
Diff
32 lines
976 B
Diff
From fbd6609bb21b125c9454d07c484d166a33b4815b Mon Sep 17 00:00:00 2001
|
|
From: sgzmd <sigizmund@gmail.com>
|
|
Date: Tue, 25 Jun 2024 15:53:32 +0100
|
|
Subject: [PATCH] Free appname if it was set after initializing crypto.
|
|
|
|
Fixes #24729
|
|
|
|
CLA: trivial
|
|
|
|
Reviewed-by: Neil Horman <nhorman@openssl.org>
|
|
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
|
|
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
|
|
Reviewed-by: Tomas Mraz <tomas@openssl.org>
|
|
(Merged from https://github.com/openssl/openssl/pull/24730)
|
|
---
|
|
crypto/conf/conf_sap.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c
|
|
index 3019bcf31af81..bfe3a5f6f4d5e 100644
|
|
--- a/crypto/conf/conf_sap.c
|
|
+++ b/crypto/conf/conf_sap.c
|
|
@@ -38,6 +38,8 @@ void OPENSSL_config(const char *appname)
|
|
settings.appname = strdup(appname);
|
|
settings.flags = DEFAULT_CONF_MFLAGS;
|
|
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, &settings);
|
|
+
|
|
+ free(settings.appname);
|
|
}
|
|
#endif
|
|
|