Skip to content

Commit

Permalink
8323562: SaslInputStream.read() may return wrong value
Browse files Browse the repository at this point in the history
  • Loading branch information
mrserb committed Jan 11, 2024
1 parent b530c02 commit b2756b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2024, 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 @@ -78,7 +78,7 @@ public int read() throws IOException {
byte[] inBuf = new byte[1];
int count = read(inBuf, 0, 1);
if (count > 0) {
return inBuf[0];
return inBuf[0] & 0xff;
} else {
return -1;
}
Expand Down

0 comments on commit b2756b1

Please sign in to comment.