mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
make rule id generation in non-cluster mode work again
This commit is contained in:
parent
99dcb40c67
commit
3bd513785f
5 changed files with 19 additions and 19 deletions
|
@ -340,7 +340,7 @@ function add_rule_impl(r: Rule) : string
|
|||
{
|
||||
r$cid = ++rule_counter; # numeric id that can be used by plugins for their rules.
|
||||
|
||||
if ( ! r?$id )
|
||||
if ( ! r?$id || r$id == "" )
|
||||
r$id = cat(r$cid);
|
||||
|
||||
for ( i in plugins )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue