提交 1a4090b1 编写于 作者: W weijun

6664612: debug output leaked

Reviewed-by: valeriep
上级 38375461
...@@ -215,7 +215,9 @@ public class CCacheInputStream extends KrbDataInputStream implements FileCCacheC ...@@ -215,7 +215,9 @@ public class CCacheInputStream extends KrbDataInputStream implements FileCCacheC
addrType = read(2); addrType = read(2);
addrLength = read(4); addrLength = read(4);
if (!(addrLength == 4 || addrLength == 16)) { if (!(addrLength == 4 || addrLength == 16)) {
if (DEBUG) {
System.out.println("Incorrect address format."); System.out.println("Incorrect address format.");
}
return null; return null;
} }
byte[] result = new byte[addrLength]; byte[] result = new byte[addrLength];
......
...@@ -440,7 +440,9 @@ public class AesDkCrypto extends DkCrypto { ...@@ -440,7 +440,9 @@ public class AesDkCrypto extends DkCrypto {
for (int i = 0; i < hashSize; i++) { for (int i = 0; i < hashSize; i++) {
if (calculatedHmac[i] != ciphertext[hmacOffset+i]) { if (calculatedHmac[i] != ciphertext[hmacOffset+i]) {
cksumFailed = true; cksumFailed = true;
if (debug) {
System.err.println("Checksum failed !"); System.err.println("Checksum failed !");
}
break; break;
} }
} }
......
...@@ -397,7 +397,9 @@ public class ArcFourCrypto extends DkCrypto { ...@@ -397,7 +397,9 @@ public class ArcFourCrypto extends DkCrypto {
for (int i = 0; i < hashSize; i++) { for (int i = 0; i < hashSize; i++) {
if (calculatedHmac[i] != ciphertext[i]) { if (calculatedHmac[i] != ciphertext[i]) {
cksumFailed = true; cksumFailed = true;
if (debug) {
System.err.println("Checksum failed !"); System.err.println("Checksum failed !");
}
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册