diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-01-03 23:24:56 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-01-03 23:24:56 +0000 |
commit | 3b8640ff6f07806e8ab4117814aa76332738b679 (patch) | |
tree | 31c06ad0ca32505ec4810a08be20d370680f6ea6 /lib | |
parent | 2da4d480414d718aa5fe2a19ef880170190c0d3c (diff) |
If the address of opendir64() is NULL that is NOT a good sign,
regardless of whether dlerror() thinks that everything is just rosy.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/intercept/intercept.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |