diff options
author | wtchang%redhat.com <devnull@localhost> | 2006-10-02 22:07:16 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2006-10-02 22:07:16 +0000 |
commit | d26f818549b01a7181ced97da5731a5fe72953d0 (patch) | |
tree | 3ec519ae056c855337bd4f2fe319a27b262eb22e | |
parent | 0fe2384aa4a5e5013eee305e32c76bbddc4ec567 (diff) | |
download | nss-hg-d26f818549b01a7181ced97da5731a5fe72953d0.tar.gz |
Bugzilla Bug 351482: fail if some of the needed functions don't exist.
r=glen.beasley,relyea.
Tag: NSS_3_11_BRANCH
-rw-r--r-- | security/nss/lib/softoken/fipstokn.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/fipstokn.c b/security/nss/lib/softoken/fipstokn.c index 3c2e54f44..1e86b3796 100644 --- a/security/nss/lib/softoken/fipstokn.c +++ b/security/nss/lib/softoken/fipstokn.c @@ -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 */ |