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

6664612: debug output leaked

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