From f812743544b7cf304daaae59f5198c0793d93b0d Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Wed, 14 Jun 2000 13:24:37 +0000 Subject: [PATCH] If initialisation fails for any reason, the global function pointers should be NULL'd out. --- crypto/engine/hw_cswift.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/engine/hw_cswift.c b/crypto/engine/hw_cswift.c index d0fa7635cc..c36642c181 100644 --- a/crypto/engine/hw_cswift.c +++ b/crypto/engine/hw_cswift.c @@ -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; } -- 2.25.1