BUG/MINOR: lua: lua-load doesn't check its parameters
authorThierry Fournier <thierry.fournier@ozon.io>
Sun, 29 Nov 2020 00:06:24 +0000 (01:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 08:20:10 +0000 (09:20 +0100)
commitad6e9c5e4f1d815dbac0861458c4f228ca2d4a01
tree9a5a3ee4f49aa8d7f66ce2592684356de61d0265
parent518017fb119b11fa3f0ceaba3258ea237513fadc
BUG/MINOR: lua: lua-load doesn't check its parameters

"lua-load" doesn't check if the expected parameter is present. It tries to
open() directly the argument at second position. So if the filename is
omitted, it tries to load an empty filename.

This patch could be backported until 1.8

(cherry picked from commit 77a88943d6a0d7852c25a03541d60ccf44aa5c6d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c