Fixing key size calculation in composite hash code.

This commit is contained in:
Robin Sommer 2011-08-18 14:11:55 -07:00
parent b7d421dbc4
commit 2636ec4679
3 changed files with 6 additions and 2 deletions

View file

@ -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;
}