Skip to content

Commit

Permalink
FISH-5540 #23424 ejb30/sec TCK failures
Browse files Browse the repository at this point in the history
Copy the OID to buffer excluding the name

Signed-off-by: hussainnm <[email protected]>
  • Loading branch information
hussainnm authored and Pandrex247 committed Nov 2, 2021
1 parent b4aeef9 commit 2dba0f7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,11 @@ private static int verifyTokenHeader(Oid oid, byte[] token) throws GSSException
if (token[index] != 0x06)
throw new GSSException(GSSException.DEFECTIVE_TOKEN);

byte[] buf = new byte[token.length - index];
// add first two bytes to the MECH_OID_LEN
int oidlen = token[index+1] + 2;
byte[] buf = new byte[oidlen];

System.arraycopy(token, index, buf, 0, token.length - index);
System.arraycopy(token, index, buf, 0, oidlen);

Oid mechoid = getOID(buf);

Expand Down

0 comments on commit 2dba0f7

Please sign in to comment.