diff --git a/src/util-lua-smtp.c b/src/util-lua-smtp.c index 1d0e4ed7e8..f18bea1b3c 100644 --- a/src/util-lua-smtp.c +++ b/src/util-lua-smtp.c @@ -306,8 +306,8 @@ static int GetRcptList(lua_State *luastate, Flow *flow) SMTPString *rcpt; TAILQ_FOREACH(rcpt, &smtp_tx->rcpt_to_list, next) { - LuaPushStringBuffer(luastate, rcpt->str, rcpt->len); lua_pushinteger(luastate, u++); + LuaPushStringBuffer(luastate, rcpt->str, rcpt->len); lua_settable(luastate, -3); } /* return 1 since we allways push one table to luastate */