From 4bf5d60f65b99c5205fdd1de70e3847976e4568f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 10 Sep 2013 20:01:05 +0200 Subject: [PATCH] session: use correct policy for rpc_handle_login() --- session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.c b/session.c index 9ad1552..df96ced 100644 --- a/session.c +++ b/session.c @@ -1042,7 +1042,7 @@ rpc_handle_login(struct ubus_context *ctx, struct ubus_object *obj, int timeout = RPC_DEFAULT_SESSION_TIMEOUT; int rv = 0; - blobmsg_parse(acl_policy, __RPC_L_MAX, tb, blob_data(msg), blob_len(msg)); + blobmsg_parse(login_policy, __RPC_L_MAX, tb, blob_data(msg), blob_len(msg)); if (!tb[RPC_L_USERNAME] || !tb[RPC_L_PASSWORD]) { rv = UBUS_STATUS_INVALID_ARGUMENT; -- 2.25.1