Back out my ELFDLL_dlopen patch and add a warning for future misguided
hackers.
This commit is contained in:
parent
2e7008cdb0
commit
49851f88e3
|
@ -57,6 +57,7 @@ void *ELFDLL_dlopen(const char *libname, int flags)
|
||||||
|
|
||||||
/* First try the default path search of dlopen() */
|
/* First try the default path search of dlopen() */
|
||||||
handle = dlopen(libname, flags);
|
handle = dlopen(libname, flags);
|
||||||
|
/* do NOT call dlerror() here ! (check after return) */
|
||||||
if(handle)
|
if(handle)
|
||||||
return handle;
|
return handle;
|
||||||
|
|
||||||
|
@ -100,10 +101,9 @@ void *ELFDLL_dlopen(const char *libname, int flags)
|
||||||
TRACE("Trying dlopen('%s', %d)\n", buffer, flags);
|
TRACE("Trying dlopen('%s', %d)\n", buffer, flags);
|
||||||
|
|
||||||
handle = dlopen(buffer, flags);
|
handle = dlopen(buffer, flags);
|
||||||
|
/* do NOT call dlerror() here ! (check after return) */
|
||||||
if(handle)
|
if(handle)
|
||||||
return handle;
|
return handle;
|
||||||
else
|
|
||||||
TRACE("possible dlopen() error: %s\n", dlerror());
|
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue