summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-10-27 12:59:06 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-10-27 12:59:06 +0200
commit31032fe918836b2f06237285435ac91bf264a504 (patch)
tree9d59e6c26ddc1838b17cc0817da937b2929b9175 /src
parenta8bbbc899c238d06f89a1abe773a967c08051081 (diff)
downloadrspamd-31032fe918836b2f06237285435ac91bf264a504.tar.gz
rspamd-31032fe918836b2f06237285435ac91bf264a504.zip
[Fix] Table parameter for rspamd_config:add_doc()
- MFH: rspamd-1.6
Diffstat (limited to 'src')
-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);