6740833: krb5.conf does not accept kdc=hostname (no spaces around =)
authorweijun
Mon, 08 Sep 2008 14:17:22 +0800
changeset 1236 77c6416750aa
parent 1235 6eb228dda95c
child 1237 e04c7e52d38f
6740833: krb5.conf does not accept kdc=hostname (no spaces around =) Reviewed-by: xuelei
jdk/src/share/classes/sun/security/krb5/Config.java
--- a/jdk/src/share/classes/sun/security/krb5/Config.java	Fri Sep 05 00:43:26 2008 -0700
+++ b/jdk/src/share/classes/sun/security/krb5/Config.java	Mon Sep 08 14:17:22 2008 +0800
@@ -803,7 +803,7 @@
             for (int j = 0; j < line.length(); j++) {
                 if (line.charAt(j) == '=') {
                     int index;
-                    key = line.substring(0, j - 1).trim();
+                    key = line.substring(0, j).trim();
                     if (! exists(key, keyVector)) {
                         keyVector.addElement(key);
                         nameVector = new Vector<String> ();