We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3660c07 commit 3146710Copy full SHA for 3146710
src/java.naming/share/classes/com/sun/jndi/ldap/sasl/SaslInputStream.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -78,7 +78,7 @@ public int read() throws IOException {
78
byte[] inBuf = new byte[1];
79
int count = read(inBuf, 0, 1);
80
if (count > 0) {
81
- return inBuf[0];
+ return inBuf[0] & 0xff;
82
} else {
83
return -1;
84
}
0 commit comments