Skip to content

Commit

Permalink
[crypto] NSS_NoDB_Init: the parameter is reserved, must be NULL
Browse files Browse the repository at this point in the history
Thanks to Feri for spotting it in corosync

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Apr 20, 2018
1 parent b56b492 commit b1a3fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libknet/crypto_nss.c
Expand Up @@ -590,7 +590,7 @@ static int init_nss(knet_handle_t knet_h)
}

if (!nss_db_is_init) {
if (NSS_NoDB_Init(".") != SECSuccess) {
if (NSS_NoDB_Init(NULL) != SECSuccess) {
log_err(knet_h, KNET_SUB_NSSCRYPTO, "NSS DB initialization failed (err %d): %s",
PR_GetError(), PR_ErrorToString(PR_GetError(), PR_LANGUAGE_I_DEFAULT));
errno = EAGAIN;
Expand Down

0 comments on commit b1a3fa9

Please sign in to comment.