From: Christopher Faulet Date: Thu, 23 May 2019 09:14:21 +0000 (+0200) Subject: BUG/MINOR: lua: Set right direction and flags on new HTTP objects X-Git-Tag: v2.0-dev5~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=256b69a82d9e096a5d67c6ae3685abd50f24193f;p=thirdparty%2Fhaproxy.git BUG/MINOR: lua: Set right direction and flags on new HTTP objects When a LUA HTTP object is created using the current TXN object, it is important to also set the right direction and flags, using ones from the TXN object. This patch may be backported to all supported branches with the lua support. But, it seems to have no impact for now. --- diff --git a/src/hlua.c b/src/hlua.c index a7fd52baa7..f8e481c27a 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5170,6 +5170,8 @@ static int hlua_http_new(lua_State *L, struct hlua_txn *txn) htxn->s = txn->s; htxn->p = txn->p; + htxn->dir = txn->dir; + htxn->flags = txn->flags; /* Pop a class stream metatable and affect it to the table. */ lua_rawgeti(L, LUA_REGISTRYINDEX, class_http_ref);