From b22e5b0b29ca7d5c5b035dbf3cfda72a4e80085c Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 26 Jun 2020 12:21:40 +0300 Subject: [PATCH] auth: db-lua - Pop result after lookup When doing lookups, the lookup result was not popped. --- src/auth/db-lua.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/auth/db-lua.c b/src/auth/db-lua.c index 2d7497672f..67e98c1f9b 100644 --- a/src/auth/db-lua.c +++ b/src/auth/db-lua.c @@ -522,7 +522,12 @@ static void auth_lua_export_table(struct dlua_script *script, struct auth_reques lua_pop(script->L, 1); } - lua_pop(script->L, 2); + /* stack has + key + table + passdb_result + */ + lua_pop(script->L, 3); lua_gc(script->L, LUA_GCCOLLECT, 0); } -- 2.47.3