Skip to content

Commit

Permalink
8264460: Improve NTLM support
Browse files Browse the repository at this point in the history
Reviewed-by: xuelei
  • Loading branch information
wangweij authored and slowhog committed Jul 21, 2021
1 parent b87e526 commit e48af00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/com/sun/security/ntlm/NTLM.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -151,7 +151,7 @@ int readInt(int offset) throws NTLMException {
int readShort(int offset) throws NTLMException {
try {
return (internal[offset] & 0xff) +
((internal[offset+1] & 0xff << 8));
(((internal[offset+1] & 0xff) << 8));
} catch (ArrayIndexOutOfBoundsException ex) {
throw new NTLMException(NTLMException.PACKET_READ_ERROR,
"Input message incorrect size");
Expand Down

0 comments on commit e48af00

Please sign in to comment.