aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 17eeeaf29..4aec7ff5a 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -2782,7 +2782,7 @@ lua_config_add_doc (lua_State *L)
if (cfg && option && doc_string) {
if (lua_type (L, 5) == LUA_TTABLE) {
- if (!rspamd_lua_parse_table_arguments (L, 2, &err,
+ if (!rspamd_lua_parse_table_arguments (L, 5, &err,
"type=S;default=S;required=B",
&type_str, &default_value, &required)) {
msg_err_config ("cannot get parameters list: %e", err);