From: William Lallemand Date: Wed, 23 Feb 2022 14:16:08 +0000 (+0100) Subject: BUG/MINOR: httpclient/lua: missing pop for new timeout parameter X-Git-Tag: v2.6-dev2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab90ee80d93b5ce35a1c611c337a1b7b3a525888;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/hlua.c b/src/hlua.c index 323a86bcd1..8c7dc61c99 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) {