diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-08 09:48:35 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-08 09:48:35 +0200 |
commit | 849f89381896b9654ae4bc6bc0057a0d94980fe4 (patch) | |
tree | e8b8940f34c98c5d43c5d73a045b1dc9ca086f7f /ubus.c | |
parent | 38aab519077775ee8bff3857121406fe0202ad9e (diff) |
ubus: use half of the script timeout as timeout for acl lookup call
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -427,7 +427,7 @@ static bool uh_ubus_allowed(const char *sid, const char *obj, const char *fun) blobmsg_add_string(&req, "object", obj); blobmsg_add_string(&req, "function", fun); - ubus_invoke(ctx, id, "access", req.head, uh_ubus_allowed_cb, &allow, 250); + ubus_invoke(ctx, id, "access", req.head, uh_ubus_allowed_cb, &allow, conf.script_timeout * 500); return allow; } |