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:
Tim Wojtulewicz 2021-11-03 15:23:17 -07:00
parent d0ed713108
commit 02fe78a03f

View file

@ -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"