]> git.sur5r.net Git - openldap/commitdiff
ITS#7289 MozNSS: cipher suite selection by name may be ignored
authorTim Strobell (Contractor) <tim.strobell.ctr@nrl.navy.mil>
Mon, 4 Jun 2012 22:40:28 +0000 (18:40 -0400)
committerHoward Chu <hyc@openldap.org>
Thu, 7 Jun 2012 12:03:15 +0000 (05:03 -0700)
libraries/libldap/tls_m.c

index 4c183602ee896315f0b0b1aee9466328d6d25390..d71fec74ad044f4ae7a4397303232c7f76d7c473 100644 (file)
@@ -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;
                                }
                        }