Skip to content

Commit

Permalink
Free appname if it was set after initializing crypto.
Browse files Browse the repository at this point in the history
Fixes openssl#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 openssl#24730)

(cherry picked from commit fbd6609)
  • Loading branch information
sgzmd authored and bernd-edlinger committed Jun 28, 2024
1 parent 35c2357 commit 5fc0fb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/conf/conf_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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

Expand Down

0 comments on commit 5fc0fb9

Please sign in to comment.