mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Ignoring packets with negative timestamps.
These used to stall Bro. Addresses BIT-1562 and BIT-1443.
This commit is contained in:
parent
4f9cb6912a
commit
3581ead0d9
6 changed files with 24 additions and 1 deletions
|
@ -289,6 +289,12 @@ bool PktSrc::ExtractNextPacketInternal()
|
|||
|
||||
if ( ExtractNextPacket(¤t_packet) )
|
||||
{
|
||||
if ( current_packet.time < 0 )
|
||||
{
|
||||
Weird("negative_packet_timestamp", ¤t_packet);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( ! first_timestamp )
|
||||
first_timestamp = current_packet.time;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue