summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2006-10-02 22:07:16 +0000
committerwtchang%redhat.com <devnull@localhost>2006-10-02 22:07:16 +0000
commitd26f818549b01a7181ced97da5731a5fe72953d0 (patch)
tree3ec519ae056c855337bd4f2fe319a27b262eb22e
parent0fe2384aa4a5e5013eee305e32c76bbddc4ec567 (diff)
downloadnss-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.c9
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 */