You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by so...@apache.org on 2019/04/19 21:09:13 UTC
[drill] branch master updated: Fixed Error for Long Packets
This is an automated email from the ASF dual-hosted git repository.
sorabh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git
The following commit(s) were added to refs/heads/master by this push:
new ffc6ef9 Fixed Error for Long Packets
ffc6ef9 is described below
commit ffc6ef9e7f407c4187d41957c7483ef16ce5d880
Author: Charles Givre <cg...@apache.org>
AuthorDate: Thu Apr 18 13:03:48 2019 -0400
Fixed Error for Long Packets
---
.../src/main/java/org/apache/drill/exec/store/pcap/decoder/Packet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/store/pcap/decoder/Packet.java b/exec/java-exec/src/main/java/org/apache/drill/exec/store/pcap/decoder/Packet.java
index 5afe7f0..2d02b47 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/store/pcap/decoder/Packet.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/store/pcap/decoder/Packet.java
@@ -408,7 +408,7 @@ public class Packet {
timestamp = timestampMicro / 1000L;
originalLength = getIntFileOrder(byteOrder, header, offset + PacketConstants.ORIGINAL_LENGTH_OFFSET);
packetLength = getIntFileOrder(byteOrder, header, offset + PacketConstants.ACTUAL_LENGTH_OFFSET);
- Preconditions.checkState(originalLength < maxLength,
+ Preconditions.checkState(originalLength <= maxLength,
"Packet too long (%d bytes)", originalLength);
}