VLab Issue #6082 - Patch for BinLightningDecoder.java; fixes #6082

Change-Id: Ide610d8209a7072dbcdc4bb7c26fc85cedc6e24f

Former-commit-id: 18b9d5d163 [formerly 7b47ffe362 [formerly 8a66266d3ffa236343f14089d7e7b32c1060f9ea]]
Former-commit-id: 7b47ffe362
Former-commit-id: 4f8900fd23
This commit is contained in:
Ana Rivera 2015-01-22 15:26:15 +00:00
parent d63d12821f
commit 74d095524e

View file

@ -134,14 +134,15 @@ public class BinLightningDecoder extends AbstractDecoder {
private static DecryptedLightningValidator validator = new DecryptedLightningValidator() { private static DecryptedLightningValidator validator = new DecryptedLightningValidator() {
@Override @Override
public boolean isValid(byte[] decryptedData) { public boolean isValid(byte[] decryptedData) {
return BinLightningDecoderUtil.isKeepAliveRecord(decryptedData) == false return BinLightningDecoderUtil.isKeepAliveRecord(decryptedData)
&& BinLightningDecoderUtil || BinLightningDecoderUtil
.isLightningDataRecords(decryptedData) == false; .isLightningDataRecords(decryptedData);
/* /*
* use this if keep-alive record could be mixed with lightning * use this if keep-alive record could be mixed with lightning
* records * records
*/ */
// return BinLigntningDecoderUtil.isValidMixedRecordData(decryptedData) == false // return
// BinLigntningDecoderUtil.isValidMixedRecordData(decryptedData);
} }
}; };