From 364c271a84210a841762beeb2dd0715cd7c2e240 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 18 May 2018 16:58:17 +0200 Subject: luci-mod-rpc: fix unresolved controller reference in rpc_auth() Fixes the following error: .../rpc.lua:85: attempt to index global 'ctrl' (a nil value) Signed-off-by: Jo-Philipp Wich --- modules/luci-mod-rpc/luasrc/controller/rpc.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/luci-mod-rpc/luasrc/controller/rpc.lua b/modules/luci-mod-rpc/luasrc/controller/rpc.lua index 5df5e375a7..1e8038b28a 100644 --- a/modules/luci-mod-rpc/luasrc/controller/rpc.lua +++ b/modules/luci-mod-rpc/luasrc/controller/rpc.lua @@ -56,6 +56,7 @@ function index() end function rpc_auth() + local ctrl = require "luci.controller.rpc" local jsonrpc = require "luci.jsonrpc" local http = require "luci.http" local sys = require "luci.sys" -- cgit v1.2.3