mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Prevent recursion of &on_change handlers.
This change prevents &on_change handlers for a table from running if an &on_change handler for the same table is already running.
This commit is contained in:
parent
7166cb7373
commit
7f9f66fce9
5 changed files with 46 additions and 3 deletions
|
@ -865,6 +865,8 @@ protected:
|
|||
PrefixTable* subnets;
|
||||
Val* def_val;
|
||||
Expr* change_func = nullptr;
|
||||
// prevent recursion of change functions
|
||||
bool in_change_func = false;
|
||||
};
|
||||
|
||||
class RecordVal : public Val, public notifier::Modifiable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue