mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
TableVal: Propagate &on_change attribute through copy()
Mostly for consistency with &default, &expire_func and other attributes being propagated through a copy(). Seems this was just missed during the implementation and/or was never tested for.
This commit is contained in:
parent
2b5db43270
commit
b2c4f8fd92
4 changed files with 46 additions and 0 deletions
|
@ -2649,6 +2649,9 @@ ValPtr TableVal::DoClone(CloneState* state)
|
|||
detail::timer_mgr->Add(tv->timer);
|
||||
}
|
||||
|
||||
if ( change_func )
|
||||
tv->change_func = change_func;
|
||||
|
||||
if ( expire_func )
|
||||
tv->expire_func = expire_func;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue