[jboss-cvs] JBossAS SVN: r95308 - projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/encoding.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 21 11:29:36 EDT 2009
Author: eduardo_thp
Date: 2009-10-21 11:29:36 -0400 (Wed, 21 Oct 2009)
New Revision: 95308
Modified:
projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/encoding/NegTokenTargDecoder.java
Log:
[SECURITY-439] Added fix for supporting windows vista clients
Modified: projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/encoding/NegTokenTargDecoder.java
===================================================================
--- projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/encoding/NegTokenTargDecoder.java 2009-10-21 14:57:58 UTC (rev 95307)
+++ projects/security/security-negotiation/trunk/jboss-negotiation-spnego/src/main/java/org/jboss/security/negotiation/spnego/encoding/NegTokenTargDecoder.java 2009-10-21 15:29:36 UTC (rev 95308)
@@ -54,6 +54,12 @@
default :
throw new IOException("Unexpected negResult");
}
+ // Used 'length - 2' as two bytes had been read from the input stream (type/length).
+ // TODO - Worked for windows vista clients, but has to be validated
+ for(int i = 0; i < length - 2; i++) {
+ // Reading extra byte information.
+ is.read();
+ }
}
private static void decodeSupportedMech(final InputStream is, final NegTokenTarg negTokenTarg) throws IOException,
More information about the jboss-cvs-commits
mailing list