From 8748c61ae070da1bd2b3609a43eb2e862d9ddacb Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 30 Jan 2013 15:44:54 +0000
Subject: [PATCH] Fix OPENDJ-729: ArrayIndexOutOfBoundsException when attempting to search using SSL with SASL/EXTERNAL
---
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ApplicationKeyManager.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ApplicationKeyManager.java b/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ApplicationKeyManager.java
index 2e0a556..b87e3ec 100755
--- a/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ApplicationKeyManager.java
+++ b/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/ApplicationKeyManager.java
@@ -90,7 +90,7 @@
}
}
- // Have some fallbacks to choose the provider and algorith of the
+ // Have some fallbacks to choose the provider and algorithm of the
// key manager. First see if the user wanted to use something
// specific, then try with the SunJSSE provider and SunX509
// algorithm. Finally, fallback to the default algorithm of the JVM.
@@ -117,7 +117,7 @@
* manager.
*/
for (final KeyManager km : kms) {
- if (kms[i] instanceof X509KeyManager) {
+ if (km instanceof X509KeyManager) {
keyManager = (X509KeyManager) km;
break;
}
--
Gitblit v1.10.0