commit | ab90ee80d93b5ce35a1c611c337a1b7b3a525888 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Wed Feb 23 15:16:08 2022 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Wed Feb 23 15:16:08 2022 +0100 |
tree | 4e5e34ce007c9ae61d7be878b42cdd083d07fc7e | |
parent | b4a4ef6a293e588af5250c124ac3aa5aae24aaff [diff] |
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 323a86b..8c7dc61 100644 --- a/src/hlua.c +++ b/src/hlua.c
@@ -7251,6 +7251,7 @@ 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) {