mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Fixing bug with even priorities potentially being ignored for the
handler.
This commit is contained in:
parent
9709b1d522
commit
bff8d39428
5 changed files with 7 additions and 9 deletions
|
@ -178,7 +178,7 @@ static void make_var(ID* id, BroType* t, init_class c, Expr* init,
|
|||
// For events, add a function value (without any body) here so that
|
||||
// we can later access the ID even if no implementations have been
|
||||
// defined.
|
||||
Func* f = new BroFunc(id, 0, 0, 0);
|
||||
Func* f = new BroFunc(id, 0, 0, 0, 0);
|
||||
id->SetVal(new Val(f));
|
||||
id->SetConst();
|
||||
}
|
||||
|
@ -392,7 +392,7 @@ void end_func(Stmt* body, attr_list* attrs)
|
|||
id->ID_Val()->AsFunc()->AddBody(body, inits, frame_size, priority);
|
||||
else
|
||||
{
|
||||
Func* f = new BroFunc(id, body, inits, frame_size);
|
||||
Func* f = new BroFunc(id, body, inits, frame_size, priority);
|
||||
id->SetVal(new Val(f));
|
||||
id->SetConst();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue