We've been using dlopen with RTLD_LAZY, which doesn't resolve symbols
at stdll load time. This has allowed missing symbol bugs to slip through
testing.

Signed-off-by: Kent Yoder <[email protected]>
---
 usr/lib/pkcs11/api/apiutil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/lib/pkcs11/api/apiutil.c b/usr/lib/pkcs11/api/apiutil.c
index 4474648..25de458 100755
--- a/usr/lib/pkcs11/api/apiutil.c
+++ b/usr/lib/pkcs11/api/apiutil.c
@@ -881,7 +881,7 @@ DL_Load( sinfp,sltp,dllload)
 
    dllload[i].dll_name = sinfp->dll_location;  // Point to the location
 
-   dllload[i].dlop_p = dlopen(sinfp->dll_location, (RTLD_GLOBAL | RTLD_LAZY));
+   dllload[i].dlop_p = dlopen(sinfp->dll_location, (RTLD_GLOBAL | RTLD_NOW));
 
    if (dllload[i].dlop_p != NULL ){
       sltp->dlop_p = dllload[i].dlop_p;
-- 
1.7.5.4



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to