]> git.ipfire.org Git - thirdparty/suricata.git/commit
lua: don't accept a table as a return value from match
authorJason Ish <jason.ish@oisf.net>
Thu, 19 Jun 2025 17:57:41 +0000 (11:57 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 21 Jun 2025 19:32:50 +0000 (21:32 +0200)
commit6f20d87ba1edc6be1f9657d7bb5b74af1805ece6
tree80179cdd82d0dfb59b8d6439cae38ce862d2f067
parenta300df4c4d7dc5db01b12d3353ddc975e916e31f
lua: don't accept a table as a return value from match

Remove the half finished support for accepting a table returned from a
Lua rule's match function. This is not documented, not tested, and not
really implemented.

Also, use lua_tointeger to get the return value from the match function
as an integer instead of a float.

Ticket: #6941
src/detect-lua.c