From 3b8640ff6f07806e8ab4117814aa76332738b679 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 3 Jan 2008 23:24:56 +0000 Subject: If the address of opendir64() is NULL that is NOT a good sign, regardless of whether dlerror() thinks that everything is just rosy. --- lib/intercept/intercept.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/intercept/intercept.cpp') diff --git a/lib/intercept/intercept.cpp b/lib/intercept/intercept.cpp index 63ce73a1..e5e29e24 100644 --- a/lib/intercept/intercept.cpp +++ b/lib/intercept/intercept.cpp @@ -413,7 +413,7 @@ static void * find_function(const char *pName) std::string name64(pName); name64 += "64"; result = dlsym(RTLD_NEXT, name64.c_str()); - if (dlerror() == NULL) + if (dlerror() == NULL && result != NULL) { return result; } -- cgit v1.2.3