If initialisation fails for any reason, the global function pointers
should be NULL'd out.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user