mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
fix empty field bug in threaded version
This commit is contained in:
parent
93fac7a4be
commit
d81607c3e9
1 changed files with 4 additions and 2 deletions
|
@ -1547,6 +1547,7 @@ HashKey* Manager::HashValues(const int num_elements, const Value* const *vals) {
|
|||
|
||||
for ( int i = 0; i < num_elements; i++ ) {
|
||||
const Value* val = vals[i];
|
||||
if ( val->present )
|
||||
length += GetValueLength(val);
|
||||
}
|
||||
|
||||
|
@ -1560,6 +1561,7 @@ HashKey* Manager::HashValues(const int num_elements, const Value* const *vals) {
|
|||
//memset(data, 0, length);
|
||||
for ( int i = 0; i < num_elements; i++ ) {
|
||||
const Value* val = vals[i];
|
||||
if ( val->present )
|
||||
position += CopyValue(data, position, val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue