6664612: debug output leaked

Reviewed-by: valeriep
This commit is contained in:
Weijun Wang 2008-03-05 22:16:06 +08:00
parent 0c6743a970
commit be421c50f1
3 changed files with 9 additions and 3 deletions

View File

@ -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];

View File

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

View File

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