[Bro-Dev] #1026: runtime error with local set of record with optional fields
Bro Tracker
bro at tracker.bro.org
Fri Jun 21 14:21:30 PDT 2013
#1026: runtime error with local set of record with optional fields
------------------------+---------------------
Reporter: dmandelb | Type: Problem
Status: new | Priority: Medium
Milestone: Bro2.2 | Component: Bro
Version: git/master | Keywords:
------------------------+---------------------
This code:
{{{
type Foo: record {
a: count &optional;
b: count &optional;
};
event bro_init() {
local foos: set[Foo] = {};
add foos[[$a=0]];
print(foos);
}
}}}
Gives this output:
{{{
error in <no location> and /home/dmandelb/reps/test.bro, line 7: index
type doesn't match table ([a=0, b=<uninitialized>] and list of any)
{
}
}}}
--
Ticket URL: <http://tracker.bro.org/bro/ticket/1026>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list