8061826: Part of JDK-8060474 should be reverted

Reviewed-by: mullan, ahgross
This commit is contained in:
Weijun Wang 2014-10-23 07:07:16 +08:00
parent 3b44ba662d
commit 2d97b4eecf
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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) {