summaryrefslogtreecommitdiffstats
path: root/src/common/pcap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/pcap.cpp')
-rwxr-xr-xsrc/common/pcap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/pcap.cpp b/src/common/pcap.cpp
index 6dd54514..9b360a3e 100755
--- a/src/common/pcap.cpp
+++ b/src/common/pcap.cpp
@@ -156,7 +156,8 @@ bool LibPCapReader::ReadPacket(CCapPktRaw *lpPacket)
}
if (pkt_header.len > READER_MAX_PACKET_SIZE) {
/* cannot read this packet */
- assert(0);
+ printf("ERROR packet is too big, bigger than %d \n",READER_MAX_PACKET_SIZE);
+ exit(-1);
return false;
}