]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: Fix lua error handling in `hlua_config_prepend_path()`
authorTim Duesterhus <tim@bastelstu.be>
Mon, 11 Oct 2021 16:51:08 +0000 (18:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Oct 2021 09:28:57 +0000 (11:28 +0200)
commit9e5e586e35c5e16db8a0c2623a5e3b8bea94ca7a
tree69ee3e3fa70edc8ec6403e16d170afe7faff6102
parent8c67eceeca9879d9bac23ce9eb331dd3fab07f68
BUG/MINOR: lua: Fix lua error handling in `hlua_config_prepend_path()`

Set an `lua_atpanic()` handler before calling `hlua_prepend_path()` in
`hlua_config_prepend_path()`.

This prevents the process from abort()ing when `hlua_prepend_path()` fails
for some reason.

see GitHub Issue #1409

This is a very minor issue that can't happen in practice. No backport needed.
src/hlua.c