]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: the function txn_done() from sample fetches can crash
authorThierry FOURNIER <thierry.fournier@ozon.io>
Thu, 14 Jul 2016 09:42:37 +0000 (11:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Jul 2016 14:14:24 +0000 (16:14 +0200)
commitab00df6cf64c0840aa9dd20cee4eb8e9f4297eba
tree89d0ac251626aa5fffe555f3394a4456769eca28
parent8ab79420bacc236ad364fc8c2ac48a29f821704e
BUG/MEDIUM: lua: the function txn_done() from sample fetches can crash

The function txn_done() ends a transaction. It does not make
sense to call this function from a lua sample-fetch wrapper,
because the role of a sample-fetch is not to terminate a
transaction.

This patch modify the role of the fucntion txn_done() if it
is called from a sample-fetch wrapper, now it just ends the
execution of the Lua code like the done() function.

Must be backported in 1.6
doc/lua-api/index.rst
include/types/hlua.h
src/hlua.c