Skip to content

Commit

Permalink
Allow calling OPENSSL_INIT_free() with NULL argument
Browse files Browse the repository at this point in the history
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#24681)
  • Loading branch information
t8m committed Jun 24, 2024
1 parent 3fc7848 commit d38f62e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/conf/conf_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ int OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,

void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings)
{
if (settings == NULL)
return;

free(settings->filename);
free(settings->appname);
free(settings);
Expand Down

0 comments on commit d38f62e

Please sign in to comment.