]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: httpclient/lua: missing pop for new timeout parameter
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 23 Feb 2022 14:16:08 +0000 (15:16 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 23 Feb 2022 14:16:08 +0000 (15:16 +0100)
The lua timeout server lacks a lua_pop(), breaking the lua stack.

No backported needed.

src/hlua.c

index 323a86bcd18ef7629c9c05acac443a5317c4c9ac..8c7dc61c99a97f04a33fd38fbe15e582839342bd 100644 (file)
@@ -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) {