From: Geoff Thorpe Date: Wed, 14 Jun 2000 13:24:37 +0000 (+0000) Subject: If initialisation fails for any reason, the global function pointers X-Git-Tag: OpenSSL-engine-0_9_6-beta1~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f812743544b7cf304daaae59f5198c0793d93b0d;p=oweals%2Fopenssl.git If initialisation fails for any reason, the global function pointers should be NULL'd out. --- 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; }