mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fix for subtle bug due to GetField now potentially returning a new ValPtr
This commit is contained in:
parent
3f6f8e0709
commit
bc4a6c0d07
1 changed files with 4 additions and 1 deletions
|
@ -1095,9 +1095,12 @@ threading::Value** Manager::RecordToFilterVals(Stream* stream, Filter* filter,
|
|||
// potentially be nested inside other records.
|
||||
list<int>& indices = filter->indices[i];
|
||||
|
||||
ValPtr val_ptr;
|
||||
|
||||
for ( list<int>::iterator j = indices.begin(); j != indices.end(); ++j )
|
||||
{
|
||||
val = val->AsRecordVal()->GetField(*j).get();
|
||||
val_ptr = val->AsRecordVal()->GetField(*j);
|
||||
val = val_ptr.get();
|
||||
|
||||
if ( ! val )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue