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 f3e27fb..c175a18 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 a5cf6aa..8e11048 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 802de40..f0e4f73 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;