summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-12-16 23:02:02 +0100
committerPetr Štetiar <ynezz@true.cz>2019-12-16 23:39:16 +0100
commit72be8e93f07d0dfb1f42edfbdb93ea04311dcb5a (patch)
treeb0223d30dc5b50d275f83325a5ac5e7ddcbf2f05
parenta995b1e68129a0bb3928625c4f5a7bcb24893d75 (diff)
downloadubus-72be8e93f07d0dfb1f42edfbdb93ea04311dcb5a.tar.gz
lua: ubus_lua_do_subscribe: fix copy&paste error
Fix copy&paste error in Lua ubus subscriber removal callback. Addresses-Coverity-ID: 1412311 ("Copy-paste error") Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--lua/ubus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/ubus.c b/lua/ubus.c
index fb50418..86dcc50 100644
--- a/lua/ubus.c
+++ b/lua/ubus.c
@@ -840,8 +840,8 @@ ubus_lua_do_subscribe( struct ubus_context *ctx, lua_State *L, const char* targe
if( idxremove ){
lua_getglobal(L, "__ubus_cb_subscribe");
- lua_pushvalue(L, idxnotify);
- sub->rnotify = luaL_ref(L, -2);
+ lua_pushvalue(L, idxremove);
+ sub->rremove = luaL_ref(L, -2);
lua_pop(L, 1);
sub->s.remove_cb = ubus_sub_remove_handler;
}