]> granicus.if.org Git - curl/commitdiff
Kamil Dudka's follow-up fix
authorDaniel Stenberg <daniel@haxx.se>
Tue, 14 Apr 2009 09:40:53 +0000 (09:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Apr 2009 09:40:53 +0000 (09:40 +0000)
lib/nss.c

index 6e0a91bfd3908a2a7c4fe2f07c74ec7e82aead54..40e6a19458f8d3149274267f40ca27268ee5548b 100644 (file)
--- 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;
   }