summaryrefslogtreecommitdiff
path: root/ubus.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-09-13 15:01:52 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-09-13 15:01:52 +0200
commit8eb20e0aad7412468975b2c9ce7e374ea3084e42 (patch)
tree2627215e1f51566670611db54e71becbb0881522 /ubus.c
parentc171d9c5a1c1320e53183f425fa9b82682eeaa51 (diff)
ubus: use "ubus_rpc_session" instead of "sid" attribute name when querying session.access
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 0d41c2d..cf5f529 100644
--- a/ubus.c
+++ b/ubus.c
@@ -448,7 +448,7 @@ static bool uh_ubus_allowed(const char *sid, const char *obj, const char *fun)
return false;
blob_buf_init(&req, 0);
- blobmsg_add_string(&req, "sid", sid);
+ blobmsg_add_string(&req, "ubus_rpc_session", sid);
blobmsg_add_string(&req, "object", obj);
blobmsg_add_string(&req, "function", fun);