]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua/filters: Return right code when txn:done() is called
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Aug 2021 12:11:17 +0000 (14:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Aug 2021 15:14:47 +0000 (17:14 +0200)
commite48d1dc2d9581c8fd1fa3f635b96fe64de7f8518
tree46a38c20d2392da1878c006549f62c75be3a6707
parent26eb5ea352c2ba8b25f014222773fb6946004bef
BUG/MINOR: lua/filters: Return right code when txn:done() is called

txn functions can now be called from an action or a filter context. Thus the
return code must be adapted depending on this context. From an action, act.ABORT
is returned. From a filter, -1 is returned. It is the filter error code.

This bug only affects 2.5-dev. No backport needed.
src/hlua.c