corosync/0011-NSS_NoDB_Init-the-parameter-is-reserved-must-be-NULL.patch

54 lines
1.6 KiB
Diff
Raw Normal View History

From 4f6a22ae78055da7b89e237ea6bf6449610a1b90 Mon Sep 17 00:00:00 2001
From: Bin Liu <bliu@suse.com>
Date: Thu, 26 Apr 2018 14:30:31 +0800
Subject: [PATCH] NSS_NoDB_Init: the parameter is reserved, must be NULL
---
cts/agents/cpg_test_agent.c | 2 +-
exec/totemcrypto.c | 2 +-
test/cpgverify.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cts/agents/cpg_test_agent.c b/cts/agents/cpg_test_agent.c
index 0837c69c..9ac9b4c2 100644
--- a/cts/agents/cpg_test_agent.c
+++ b/cts/agents/cpg_test_agent.c
@@ -788,7 +788,7 @@ main(int argc, char *argv[])
list_init (&msg_log_head);
list_init (&config_chg_log_head);
- if (NSS_NoDB_Init(".") != SECSuccess) {
+ if (NSS_NoDB_Init(NULL) != SECSuccess) {
qb_log(LOG_ERR, "Couldn't initialize nss");
exit (0);
}
diff --git a/exec/totemcrypto.c b/exec/totemcrypto.c
index 64246c98..b35683f9 100644
--- a/exec/totemcrypto.c
+++ b/exec/totemcrypto.c
@@ -670,7 +670,7 @@ static int init_nss_db(struct crypto_instance *instance)
return 0;
}
- if (NSS_NoDB_Init(".") != SECSuccess) {
+ if (NSS_NoDB_Init(NULL) != SECSuccess) {
log_printf(instance->log_level_security, "NSS DB initialization failed (err %d)",
PR_GetError());
return -1;
diff --git a/test/cpgverify.c b/test/cpgverify.c
index 928eff33..0462a34d 100644
--- a/test/cpgverify.c
+++ b/test/cpgverify.c
@@ -137,7 +137,7 @@ int main (int argc, char *argv[])
exit (0);
}
- if (NSS_NoDB_Init(".") != SECSuccess) {
+ if (NSS_NoDB_Init(NULL) != SECSuccess) {
printf ("Couldn't initialize nss\n");
exit (0);
}
--
2.13.6