summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-09-17 21:44:53 +0300
committerHanoh Haim <hhaim@cisco.com>2015-09-17 21:44:53 +0300
commitf885ac59cebcf1e87b97b0e6ef6e9eb032f9f733 (patch)
treef577368cb65bc537a85c1b7c4111618d84984318 /src/common
parenta360a1734c459d62bd4c204a6005214ce8944f85 (diff)
fix some pcap load issues
Diffstat (limited to 'src/common')
-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;
}