提交 409a8226 编写于 作者: W weijun

8061826: Part of JDK-8060474 should be reverted

Reviewed-by: mullan, ahgross
上级 98447488
......@@ -58,7 +58,7 @@ public class KeyTabInputStream extends KrbDataInputStream implements KeyTabConst
* Reads the number of bytes this entry data occupy.
*/
int readEntryLength() throws IOException {
return readLength4();
return read(4);
}
......
......@@ -82,7 +82,7 @@ public class KrbDataInputStream extends BufferedInputStream{
byte[] bytes = new byte[num];
if (read(bytes, 0, num) != num) {
throw new IOException("Premature end of stream reached");
};
}
int result = 0;
for (int i = 0; i < num; i++) {
if (bigEndian) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册