mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Change the function for log extension to take a path only and update tests.
We were having stack overflow issues creep in with the self-referential field for the log extension function.
This commit is contained in:
parent
5f6565d62c
commit
79e49e1ab5
11 changed files with 213 additions and 150 deletions
|
@ -1063,7 +1063,7 @@ threading::Value** Manager::RecordToFilterVals(Stream* stream, Filter* filter,
|
|||
if ( filter->num_ext_fields > 0 )
|
||||
{
|
||||
val_list vl(1);
|
||||
vl.append(filter->fval->AsRecordVal()->Ref());
|
||||
vl.append(filter->path_val->Ref());
|
||||
ext_rec = filter->ext_func->Call(&vl)->AsRecordVal();
|
||||
}
|
||||
|
||||
|
@ -1111,6 +1111,11 @@ threading::Value** Manager::RecordToFilterVals(Stream* stream, Filter* filter,
|
|||
}
|
||||
}
|
||||
|
||||
if ( ext_rec != 0 )
|
||||
{
|
||||
Unref(ext_rec);
|
||||
}
|
||||
|
||||
return vals;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue