commit c77403a: [Minor] Oops, fix index

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Jun 11 16:42:07 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-11 17:31:57 +0100
URL: https://github.com/rspamd/rspamd/commit/c77403a16d4f892a1e62358fccb1715bad8e7859

[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;
 


More information about the Commits mailing list