From c77403a16d4f892a1e62358fccb1715bad8e7859 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 11 Jun 2021 17:31:57 +0100 Subject: [PATCH] [Minor] Oops, fix index --- src/lua/lua_parsers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_parsers.c b/src/lua/lua_parsers.c index 4180ac0d9..4d3398fc8 100644 --- a/src/lua/lua_parsers.c +++ b/src/lua/lua_parsers.c @@ -250,7 +250,7 @@ lua_parsers_parse_mail_address (lua_State *L) GPtrArray *addrs; gsize len; const gchar *str = luaL_checklstring (L, 1, &len); - gint max_addrs = luaL_optinteger(L, 2, 10240); + gint max_addrs = luaL_optinteger(L, 3, 10240); rspamd_mempool_t *pool; gboolean own_pool = FALSE; -- 2.39.5