mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fixing hashing records with optional strings.
This commit is contained in:
parent
0dbbee46ae
commit
f43766650f
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ int CompositeHash::SingleTypeKeySize(BroType* bt, const Val* v,
|
|||
|
||||
case TYPE_INTERNAL_STRING:
|
||||
if ( ! v )
|
||||
return 0;
|
||||
return optional ? sz : 0;
|
||||
|
||||
// Factor in length field.
|
||||
sz = SizeAlign(sz, sizeof(int));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue