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

crypto/engine/hw_aep.c
crypto/engine/hw_atalla.c
crypto/engine/hw_ubsec.c

index 8b8380a582b4d1432a76862a70ef6aff952652ce..5f1772ea995344ff1e6d3ca297c8fbd48103313b 100644 (file)
@@ -474,6 +474,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 e9eff9fad11ec1d8a6f3404cc09273d900e04917..2b8342bbdd987dbed411907046799be3ba43cc6e 100644 (file)
@@ -375,6 +375,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 5234a08a07bd7b78e6ee03b7f6690d3daef5c0da..8fb834af31ed6ac6b14545f875103ff34f4ab06d 100644 (file)
@@ -454,6 +454,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;