diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-22 15:28:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-22 15:28:33 +0000 |
commit | ddc31e82f71c98a8cd2fa1bdf100715e605fcd94 (patch) | |
tree | df708fc275a2dd98857c451f64fbd4291807687e /src | |
parent | 804a52a44d8bec057562dbb4eae1a5204871c0a8 (diff) | |
download | rspamd-ddc31e82f71c98a8cd2fa1bdf100715e605fcd94.tar.gz rspamd-ddc31e82f71c98a8cd2fa1bdf100715e605fcd94.zip |
[Minor] Fix passing args to rspamadm lua scripts
Diffstat (limited to 'src')
-rw-r--r-- | src/rspamadm/rspamadm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index c42a76a09..b39c75897 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -240,9 +240,9 @@ rspamadm_execute_lua_ucl_subr (gpointer pL, gint argc, gchar **argv, /* Push argv */ lua_newtable (L); - for (i = 0; i < argc; i ++) { + for (i = 1; i < argc; i ++) { lua_pushstring (L, argv[i]); - lua_rawseti (L, -2, i + 1); + lua_rawseti (L, -2, i); } /* Push results */ |