mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Add a null value check in CompositeHash::ComputeHash.
Because I guess aborting is nicer than segfaulting. Addresses #930.
This commit is contained in:
parent
fdd11428c1
commit
624980b98d
1 changed files with 3 additions and 0 deletions
|
@ -273,6 +273,9 @@ char* CompositeHash::SingleValHash(int type_check, char* kp0,
|
|||
|
||||
HashKey* CompositeHash::ComputeHash(const Val* v, int type_check) const
|
||||
{
|
||||
if ( ! v )
|
||||
reporter->InternalError("null value given to CompositeHash::ComputeHash");
|
||||
|
||||
if ( is_singleton )
|
||||
return ComputeSingletonHash(v, type_check);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue