OpaqueVal: Register TelemetryVals, too

Even if they are not serializable, OpaqueMgr::TypeID() is called
during BuildJSON() for them and that previously just aborted.

Closes #3473
This commit is contained in:
Arne Welzel 2023-11-27 19:41:05 +01:00
parent 2284ad4b85
commit aa5d7f5a73
6 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# @TEST-DOC: Ensure to_json(global_ids()) does not abort and do not expect any stderr output.
# @TEST-EXEC: unset ZEEK_ALLOW_INIT_ERRORS; zeek %INPUT
# @TEST-EXEC: btest-diff .stderr
event zeek_init()
{
assert |to_json(global_ids())| > 0;
}