Skip to content
Snippets Groups Projects
Commit 31467103 authored by Satyen Subramaniam's avatar Satyen Subramaniam Committed by Paul Hohensee
Browse files

8323562: SaslInputStream.read() may return wrong value

Backport-of: 5cf7947ccd1fc56e8944c28145a9c8e71f5e1a03
parent 3660c07f
No related branches found
No related tags found
No related merge requests found
/*
* 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
......@@ -78,7 +78,7 @@ public class SaslInputStream extends InputStream {
byte[] inBuf = new byte[1];
int count = read(inBuf, 0, 1);
if (count > 0) {
return inBuf[0];
return inBuf[0] & 0xff;
} else {
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment