mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/reporter-fatal-bif'
* origin/topic/jsiwek/reporter-fatal-bif: Add a Reporter::fatal BIF.
This commit is contained in:
commit
1726aee4e9
4 changed files with 12 additions and 5 deletions
|
@ -393,10 +393,7 @@ event bro_init() &priority=10
|
|||
for ( pi in policy )
|
||||
{
|
||||
if ( pi$priority < 0 || pi$priority > 10 )
|
||||
{
|
||||
print "All Notice::PolicyItem priorities must be within 0 and 10";
|
||||
exit();
|
||||
}
|
||||
Reporter::fatal("All Notice::PolicyItem priorities must be within 0 and 10");
|
||||
|
||||
if ( pi$priority !in tmp )
|
||||
tmp[pi$priority] = set();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue