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

Change-Id: Ide610d8209a7072dbcdc4bb7c26fc85cedc6e24f

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

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