From ab90ee80d93b5ce35a1c611c337a1b7b3a525888 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 23 Feb 2022 15:16:08 +0100 Subject: [PATCH] BUG/MINOR: httpclient/lua: missing pop for new timeout parameter The lua timeout server lacks a lua_pop(), breaking the lua stack. No backported needed. --- src/hlua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hlua.c b/src/hlua.c index 323a86bcd..8c7dc61c9 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -7251,6 +7251,7 @@ __LJMP static int hlua_httpclient_send(lua_State *L, enum http_meth_t meth) timeout = lua_tointeger(L, -1); httpclient_set_timeout(hlua_hc->hc, timeout); } + lua_pop(L, 1); ret = lua_getfield(L, -1, "headers"); if (ret == LUA_TTABLE) {