Skip to content

Commit

Permalink
Check for maps on kv_hash_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 committed Jul 18, 2024
1 parent 1162a90 commit 0a2d5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/fingerprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void vector_hash_field::operator()(string_buffer &output)

void kv_hash_fields::operator()(string_buffer &output)
{
if (value.nbEntries == 0) {
if (value.type != DDWAF_OBJ_MAP || value.nbEntries == 0) {
output.append('-');
return;
}
Expand Down

0 comments on commit 0a2d5e8

Please sign in to comment.