mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
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:
parent
88278214a9
commit
d886f40728
5 changed files with 20 additions and 1 deletions
|
@ -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() };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue