mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
GH-163: Use ID name (including module name) to create EventExpr when possible
The change to the capture-loss test is actually a fix for a bug exposed by the code change. Previously it wasn't firing the scheduled event because of a failed name lookup. Now that the lookup has been fixed, the event happens twice.
This commit is contained in:
parent
a0a2a18337
commit
687dd05ddb
3 changed files with 8 additions and 2 deletions
|
@ -1936,9 +1936,13 @@ event:
|
|||
|
||||
if ( id->IsDeprecated() )
|
||||
reporter->Warning("%s", id->GetDeprecationWarning().c_str());
|
||||
}
|
||||
|
||||
$$ = new EventExpr($1, {AdoptRef{}, $3});
|
||||
$$ = new EventExpr(id->Name(), {AdoptRef{}, $3});
|
||||
}
|
||||
else
|
||||
{
|
||||
$$ = new EventExpr($1, {AdoptRef{}, $3});
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue