mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Func: use class IntrusivePtr
This commit is contained in:
parent
b18573c804
commit
a0c831a1bd
15 changed files with 89 additions and 146 deletions
|
@ -179,15 +179,9 @@ bool RuleConditionEval::DoMatch(Rule* rule, RuleEndpointState* state,
|
|||
|
||||
try
|
||||
{
|
||||
Val* val = id->ID_Val()->AsFunc()->Call(&args);
|
||||
auto val = id->ID_Val()->AsFunc()->Call(&args);
|
||||
|
||||
if ( val )
|
||||
{
|
||||
result = val->AsBool();
|
||||
Unref(val);
|
||||
}
|
||||
else
|
||||
result = false;
|
||||
result = val && val->AsBool();
|
||||
}
|
||||
|
||||
catch ( InterpreterException& e )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue