If there ever was a bug with dlclose() in 64 bit systems, I dont see it happening anymore.
Signed-off-by: Klaus Heinrich Kiwi <[email protected]> --- usr/lib/pkcs11/api/apiutil.c | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/usr/lib/pkcs11/api/apiutil.c b/usr/lib/pkcs11/api/apiutil.c index 5e7166e..216aefb 100755 --- a/usr/lib/pkcs11/api/apiutil.c +++ b/usr/lib/pkcs11/api/apiutil.c @@ -1018,17 +1018,13 @@ void DL_Unload(sltp) { DLL_Load_t *dllload; - // Decrement the count of loads. When 0 then unloadthis thing; + // Decrement the count of loads. When 0 then unload this thing; // dllload = sltp->dll_information; dllload->dll_load_count --; if (dllload->dll_load_count == 0 ){ -// bug in 64bit causes crash of system... -// check here for 64bit app - if (sizeof(long) == 4){ - dlclose(dllload->dlop_p); - } - dllload->dll_name = NULL; + dlclose(dllload->dlop_p); + dllload->dll_name = NULL; } // Clear out the slot information sltp->DLLoaded = FALSE; -- 1.7.2.3 ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Opencryptoki-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech
