mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Only set connection history if strings differ
This commit is contained in:
parent
0aafc8ae6c
commit
1f8d406658
3 changed files with 12 additions and 2 deletions
|
@ -273,8 +273,12 @@ const RecordValPtr& Connection::GetVal()
|
|||
conn_val->AssignTime(3, start_time); // ###
|
||||
conn_val->AssignInterval(4, last_time - start_time);
|
||||
|
||||
if ( history.size() )
|
||||
conn_val->Assign(6, history);
|
||||
if ( ! history.empty() )
|
||||
{
|
||||
auto v = conn_val->GetFieldAs<StringVal>(6);
|
||||
if ( *v != history )
|
||||
conn_val->Assign(6, history);
|
||||
}
|
||||
|
||||
conn_val->SetOrigin(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue