mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
bifcl: Allow analyzer to be passed as nullptr for enqueue methods
This allows the methods to be used in contexts where the analyzer ID is not available or when the ID doesn't matter, such as in packet analyzers.
This commit is contained in:
parent
d0ed713108
commit
02fe78a03f
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ static void print_event_c_body(FILE* fp)
|
|||
}
|
||||
}
|
||||
|
||||
fprintf(fp, "\t },\n\t zeek::util::detail::SOURCE_LOCAL, analyzer->GetID()");
|
||||
fprintf(fp, "\t },\n\t zeek::util::detail::SOURCE_LOCAL, analyzer ? analyzer->GetID() : 0");
|
||||
|
||||
if ( connection_arg )
|
||||
// Pass the connection to the EventMgr as the "cookie"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue