From: Aki Tuomi Date: Fri, 26 Jun 2020 09:21:40 +0000 (+0300) Subject: auth: db-lua - Pop result after lookup X-Git-Tag: 2.3.11.2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b22e5b0b29ca7d5c5b035dbf3cfda72a4e80085c;p=thirdparty%2Fdovecot%2Fcore.git auth: db-lua - Pop result after lookup When doing lookups, the lookup result was not popped. --- 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); }