aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/ratelimit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/ratelimit.lua')
-rw-r--r--src/plugins/lua/ratelimit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 2eb7f30a7..24c384913 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -252,7 +252,7 @@ local function rate_test_set(task, func)
local from = task:get_from()
local from_user = '<>'
local from_addr = '<>'
- if from and from[1]['addr'] then
+ if from and from[1] and from[1]['addr'] then
from_user = from[1]['user']
from_addr = from[1]['addr']
end