diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-02-13 14:16:48 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-02-13 14:16:50 +0100 |
commit | 65b1f181e642a1d459d745a1a2f3d21d2d3cb8f7 (patch) | |
tree | 98b8bfbbda6d86fe0902c0335654f5680da254ab /lib/rtnl.c | |
parent | 837cffec5a5cb2222fee6fdb682b87977410267e (diff) |
rtnl: add missing uc_vm_registry_set call
Fixes maintaining the listener array
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'lib/rtnl.c')
-rw-r--r-- | lib/rtnl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4150,5 +4150,7 @@ void uc_module_init(uc_vm_t *vm, uc_value_t *scope) listener_type = uc_type_declare(vm, "rtnl.listener", listener_fns, uc_nl_listener_free); listener_registry = ucv_array_new(vm); + uc_vm_registry_set(vm, "rtnl.registry", listener_registry); + register_constants(vm, scope); } |