mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Fixing key size calculation in composite hash code.
This commit is contained in:
parent
b7d421dbc4
commit
2636ec4679
3 changed files with 6 additions and 2 deletions
|
@ -393,7 +393,7 @@ int CompositeHash::SingleTypeKeySize(BroType* bt, const Val* v,
|
|||
|
||||
sz = SingleTypeKeySize(rt->FieldType(i),
|
||||
rv ? rv->Lookup(i) : 0,
|
||||
type_check, sz, optional);
|
||||
type_check, sz, v && optional);
|
||||
if ( ! sz )
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue