If initialisation fails for any reason, the global function pointers
authorGeoff Thorpe <geoff@openssl.org>
Wed, 14 Jun 2000 13:24:37 +0000 (13:24 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 14 Jun 2000 13:24:37 +0000 (13:24 +0000)
should be NULL'd out.

crypto/engine/hw_cswift.c

index d0fa7635cca468c26f5b0574878ae7eca7bdf44d..c36642c18192246299427700aa3da204c90125f2 100644 (file)
@@ -289,6 +289,10 @@ static int cswift_init()
 err:
        if(cswift_dso)
                DSO_free(cswift_dso);
+       p_CSwift_AcquireAccContext = NULL;
+       p_CSwift_AttachKeyParam = NULL;
+       p_CSwift_SimpleRequest = NULL;
+       p_CSwift_ReleaseAccContext = NULL;
        return 0;
        }