提交 64b69ec2 编写于 作者: W weijun

8061826: Part of JDK-8060474 should be reverted

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