mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Fix segfault if when statement's RHS is unitialized.
If it is ever assigned a value, the body of the when can be triggered as usual. Addresses BIT-1176.
This commit is contained in:
parent
432744fde4
commit
1f7facda5b
3 changed files with 71 additions and 1 deletions
|
@ -206,7 +206,7 @@ bool Trigger::Eval()
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( v->IsZero() )
|
||||
if ( ! v || v->IsZero() )
|
||||
{
|
||||
// Not true. Perhaps next time...
|
||||
DBG_LOG(DBG_NOTIFIERS, "%s: trigger condition is false", Name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue