From edb0600583efc33840baf52c374882b91c937b05 Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Fri, 17 Jun 2005 21:26:36 +0000 Subject: [PATCH] clear dso pointer in case of an error PR: 816 --- engines/e_aep.c | 1 + engines/e_atalla.c | 1 + engines/e_ubsec.c | 1 + 3 files changed, 3 insertions(+) diff --git a/engines/e_aep.c b/engines/e_aep.c index f3e27fb01d..c175a186e9 100644 --- a/engines/e_aep.c +++ b/engines/e_aep.c @@ -479,6 +479,7 @@ static int aep_init(ENGINE *e) if(aep_dso) DSO_free(aep_dso); + aep_dso = NULL; p_AEP_OpenConnection = NULL; p_AEP_ModExp = NULL; diff --git a/engines/e_atalla.c b/engines/e_atalla.c index a5cf6aa885..8e11048d05 100644 --- a/engines/e_atalla.c +++ b/engines/e_atalla.c @@ -384,6 +384,7 @@ static int atalla_init(ENGINE *e) err: if(atalla_dso) DSO_free(atalla_dso); + atalla_dso = NULL; p_Atalla_GetHardwareConfig = NULL; p_Atalla_RSAPrivateKeyOpFn = NULL; p_Atalla_GetPerformanceStatistics = NULL; diff --git a/engines/e_ubsec.c b/engines/e_ubsec.c index 802de40be6..f0e4f736ad 100644 --- a/engines/e_ubsec.c +++ b/engines/e_ubsec.c @@ -463,6 +463,7 @@ static int ubsec_init(ENGINE *e) err: if(ubsec_dso) DSO_free(ubsec_dso); + ubsec_dso = NULL; p_UBSEC_ubsec_bytes_to_bits = NULL; p_UBSEC_ubsec_bits_to_bytes = NULL; p_UBSEC_ubsec_open = NULL; -- 2.25.1