summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-02-13 14:16:48 +0100
committerFelix Fietkau <nbd@nbd.name>2023-02-13 14:16:50 +0100
commit65b1f181e642a1d459d745a1a2f3d21d2d3cb8f7 (patch)
tree98b8bfbbda6d86fe0902c0335654f5680da254ab
parent837cffec5a5cb2222fee6fdb682b87977410267e (diff)
rtnl: add missing uc_vm_registry_set call
Fixes maintaining the listener array Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--lib/rtnl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rtnl.c b/lib/rtnl.c
index 26e7f56..b5afde4 100644
--- a/lib/rtnl.c
+++ b/lib/rtnl.c
@@ -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);
}