BUG/MINOR: lua: Properly catch alloc errors when parsing lua filter directives
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Aug 2021 06:33:57 +0000 (08:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Aug 2021 06:42:00 +0000 (08:42 +0200)
commitc86bb87f106a2b4f2b56de3e1381ea3e1d9aea2b
tree45af713a3912018e5a5ee821fc800001ebec8498
parent70c4345dbc19c2e304d8d481ccb391990b61c425
BUG/MINOR: lua: Properly catch alloc errors when parsing lua filter directives

When a lua filter declaration is parsed, some allocation errors were not
properly handled. In addition, we must be sure the filter identifier is defined
in lua to duplicate it when the filter configuration is filled.

This patch fix a defect reported in the issue #1347. It only concerns
2.5-dev. No backport needed.
src/hlua.c