diff --git a/lib/nss.c b/lib/nss.c index 6e0a91bfd..40e6a1945 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -367,7 +367,7 @@ static int nss_load_cert(struct ssl_connect_data *ssl, PK11_FreeSlot(slot); - if(ssl->cacert == NULL) { + if(ssl->cacert[slotID] == NULL) { free(nickname); return 0; }