luci-mod-rpc: fix unresolved controller reference in rpc_auth()
authorJo-Philipp Wich <jo@mein.io>
Fri, 18 May 2018 14:58:17 +0000 (16:58 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 18 May 2018 14:58:17 +0000 (16:58 +0200)
commit364c271a84210a841762beeb2dd0715cd7c2e240
tree12e9dd2ea56b1dc4ab356901fcf96edae0d59e3c
parent828202ef5237f48e6f53d15ca198e2c6815b7cd7
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 <jo@mein.io>
modules/luci-mod-rpc/luasrc/controller/rpc.lua