Ignoring packets with negative timestamps.

These used to stall Bro. Addresses BIT-1562 and BIT-1443.
This commit is contained in:
Robin Sommer 2016-05-23 13:21:03 -07:00
parent 4f9cb6912a
commit 3581ead0d9
6 changed files with 24 additions and 1 deletions

View file

@ -289,6 +289,12 @@ bool PktSrc::ExtractNextPacketInternal()
if ( ExtractNextPacket(&current_packet) )
{
if ( current_packet.time < 0 )
{
Weird("negative_packet_timestamp", &current_packet);
return 0;
}
if ( ! first_timestamp )
first_timestamp = current_packet.time;