GH-378: check validity of missing 'val' field in Input::add_table

It's only allowed to be missing when the 'destination' field is a
"set" type, but not for a "table" type.

Fixes GH-378
This commit is contained in:
Jon Siwek 2019-05-24 10:23:20 -07:00
parent 88278214a9
commit d886f40728
5 changed files with 20 additions and 1 deletions

View file

@ -188,5 +188,7 @@ event zeek_init()
Input::add_event([$source="input.log", $name="error4", $fields=Val, $ev=event11, $want_record=T, $error_ev=errorhandler4]);
Input::add_event([$source="input.log", $name="error5", $fields=Val, $ev=event11, $want_record=T, $error_ev=errorhandler5]);
Input::add_table([$source="input.log", $name="error6", $idx=Idx, $destination=val_table]);
schedule 3secs { kill_me() };
}