mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bugzilla Bug 351482: fail if some of the needed functions don't exist.
r=glen.beasley,relyea.
This commit is contained in:
parent
a9b680accd
commit
73f3b25c8c
@ -108,6 +108,15 @@ libaudit_init(void)
|
||||
audit_send_user_message_func = dlsym(libaudit_handle,
|
||||
"audit_send_user_message");
|
||||
}
|
||||
if (!audit_open_func || !audit_close_func ||
|
||||
(!audit_log_user_message_func && !audit_send_user_message_func)) {
|
||||
dlclose(libaudit_handle);
|
||||
libaudit_handle = NULL;
|
||||
audit_open_func = NULL;
|
||||
audit_close_func = NULL;
|
||||
audit_log_user_message_func = NULL;
|
||||
audit_send_user_message_func = NULL;
|
||||
}
|
||||
}
|
||||
#endif /* LINUX */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user