clear dso pointer in case of an error
authorNils Larsch <nils@openssl.org>
Fri, 17 Jun 2005 21:26:36 +0000 (21:26 +0000)
committerNils Larsch <nils@openssl.org>
Fri, 17 Jun 2005 21:26:36 +0000 (21:26 +0000)
PR: 816

engines/e_aep.c
engines/e_atalla.c
engines/e_ubsec.c

index f3e27fb01ddfaa6ee09503cdef3eac90b196b367..c175a186e98a2a4db12638c83db3f8575c016375 100644 (file)
@@ -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;
index a5cf6aa885aef7937a243ccaa03a874c39032b21..8e11048d054fff2518167de82128f2ac92c532a3 100644 (file)
@@ -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;
index 802de40be6d5d8755edd52e8c745956b0af573c1..f0e4f736ad5330259541b1195d4209f22b78e18c 100644 (file)
@@ -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;