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

Change-Id: Ide610d8209a7072dbcdc4bb7c26fc85cedc6e24f

Former-commit-id: 8a66266d3ffa236343f14089d7e7b32c1060f9ea
This commit is contained in:
Ana Rivera 2015-01-22 15:26:15 +00:00
parent e575fd6eb9
commit 7b47ffe362

View file

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