mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Fix use-after-free in Trigger.cc
timeout_val is used _right_ after it is Unref'd.
This commit is contained in:
parent
9b59157d19
commit
28498f752b
1 changed files with 2 additions and 2 deletions
|
@ -136,8 +136,8 @@ Trigger::Trigger(Expr* arg_cond, Stmt* arg_body, Stmt* arg_timeout_stmts,
|
||||||
|
|
||||||
if ( timeout_val )
|
if ( timeout_val )
|
||||||
{
|
{
|
||||||
Unref(timeout_val);
|
|
||||||
timeout_value = timeout_val->AsInterval();
|
timeout_value = timeout_val->AsInterval();
|
||||||
|
Unref(timeout_val);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure we don't get deleted if somebody calls a method like
|
// Make sure we don't get deleted if somebody calls a method like
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue