Fix a confusing variable name shadowing

This commit is contained in:
Jon Siwek 2020-04-14 15:29:00 -07:00
parent ffe8a018a1
commit f70ecccc34
3 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,8 @@
3.2.0-dev.394 | 2020-04-14 15:29:00 -0700
* Fix a confusing variable name shadowing (Jon Siwek, Corelight)
3.2.0-dev.392 | 2020-04-14 11:06:04 -0700
* Fix Stack Overflow in POP3_Analyzer::ProcessRequest. (Johanna Amann, Corelight)

View file

@ -1 +1 @@
3.2.0-dev.392
3.2.0-dev.394

View file

@ -1341,8 +1341,8 @@ static void find_nested_record_types(BroType* t, std::set<RecordType*>* found)
return;
case TYPE_LIST:
{
for ( auto& t : *t->AsTypeList()->Types() )
find_nested_record_types(t, found);
for ( auto& type : *t->AsTypeList()->Types() )
find_nested_record_types(type, found);
}
return;
case TYPE_FUNC: