mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Fix non-deterministic logging of unmatched DNS msgs, addresses BIT-1153
Unmatched DNS messages may fail to be logged sometimes due to a type of iterator invalidation.
This commit is contained in:
parent
69d52feb18
commit
f30d3e635e
1 changed files with 2 additions and 3 deletions
|
@ -181,10 +181,9 @@ function log_unmatched_msgs_queue(q: Queue::Queue)
|
||||||
function log_unmatched_msgs(msgs: PendingMessages)
|
function log_unmatched_msgs(msgs: PendingMessages)
|
||||||
{
|
{
|
||||||
for ( trans_id in msgs )
|
for ( trans_id in msgs )
|
||||||
{
|
|
||||||
log_unmatched_msgs_queue(msgs[trans_id]);
|
log_unmatched_msgs_queue(msgs[trans_id]);
|
||||||
delete msgs[trans_id];
|
|
||||||
}
|
msgs = PendingMessages();
|
||||||
}
|
}
|
||||||
|
|
||||||
function enqueue_new_msg(msgs: PendingMessages, id: count, msg: Info)
|
function enqueue_new_msg(msgs: PendingMessages, id: count, msg: Info)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue