mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Make 0 be a valid packet source timestamp
For fuzzed/damaged/corrupted pcaps, a timestamp of 0 could lead to an infinite loop in Bro as it interprets that as meaning the packet source is not ready yet.
This commit is contained in:
parent
791b24d232
commit
19b893a5bc
4 changed files with 9 additions and 5 deletions
|
@ -1017,7 +1017,7 @@ double EventPlayer::NextTimestamp(double* local_network_time)
|
|||
return ne_time;
|
||||
|
||||
if ( ! io )
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
// Read next event if we don't have one waiting.
|
||||
if ( ! ne_time )
|
||||
|
@ -1028,7 +1028,7 @@ double EventPlayer::NextTimestamp(double* local_network_time)
|
|||
}
|
||||
|
||||
if ( ! ne_time )
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
if ( ! network_time )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue