]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: lua: fix setting netfilter mark
authorLukas Tribus <lukas@ltri.eu>
Sun, 11 Aug 2019 16:03:45 +0000 (18:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Aug 2019 05:41:31 +0000 (07:41 +0200)
In the REORG of commit 1a18b5414 ("REORG: connection: centralize the
conn_set_{tos,mark,quickack} functions") a bug was introduced by
calling conn_set_tos instead of conn_set_mark.

This was reported in issue #212

This should be backported to 1.9 and 2.0.

src/hlua.c

index 8844ebe6720648ad71143970c5f44426a3f08da6..9ecf03210d70e833906d771ac779d3f224898f23 100644 (file)
@@ -5376,7 +5376,7 @@ __LJMP static int hlua_txn_set_mark(lua_State *L)
        htxn = MAY_LJMP(hlua_checktxn(L, 1));
        mark = MAY_LJMP(luaL_checkinteger(L, 2));
 
-       conn_set_tos(objt_conn(htxn->s->sess->origin), mark);
+       conn_set_mark(objt_conn(htxn->s->sess->origin), mark);
        return 0;
 }