From afdad1bf6e323e30b9c324e69349f57a9855190c Mon Sep 17 00:00:00 2001
From: "Tim Strobell (Contractor)" <tim.strobell.ctr@nrl.navy.mil>
Date: Mon, 4 Jun 2012 18:40:28 -0400
Subject: [PATCH] ITS#7289 MozNSS: cipher suite selection by name may be
 ignored

---
 libraries/libldap/tls_m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c
index 4c183602ee..d71fec74ad 100644
--- a/libraries/libldap/tls_m.c
+++ b/libraries/libldap/tls_m.c
@@ -624,7 +624,7 @@ nss_parse_ciphers(const char *cipherstr, int cipher_list[ciphernum])
 			} else {
 				for (i=0; i<ciphernum; i++) {
 					if (!strcmp(ciphers_def[i].ossl_name, cipher) &&
-						cipher_list[1] != -1)
+						cipher_list[i] != -1)
 						cipher_list[i] = action;
 				}
 			}
-- 
GitLab