mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r4009: Fix from Timur Bakeyev <timur@com.bat.ru> for bugid #2100,
change the way we check for errors after a dlopen (which may set internal warnings which get picked up by mistake in dlsym). Jeremy
This commit is contained in:
parent
fbbdb72cf1
commit
6711cb8b02
@ -40,9 +40,12 @@ static NTSTATUS do_smb_load_module(const char *module_name, BOOL is_probe)
|
||||
*/
|
||||
handle = sys_dlopen(module_name, RTLD_LAZY);
|
||||
|
||||
/* This call should reset any possible non-fatal errors that
|
||||
occured since last call to dl* functions */
|
||||
error = sys_dlerror();
|
||||
|
||||
if(!handle) {
|
||||
int level = is_probe ? 3 : 0;
|
||||
error = sys_dlerror();
|
||||
DEBUG(level, ("Error loading module '%s': %s\n", module_name, error ? error : ""));
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user