]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/lua: change arg name to reflect correctness
authorShivani Bhardwaj <shivani@oisf.net>
Wed, 26 Mar 2025 06:04:11 +0000 (11:34 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 1 Apr 2025 08:17:07 +0000 (10:17 +0200)
commit04c9e16348e4c4642d605150af9e467e3b18a805
treec9be1be21e214987261759ff280e1e1e46f4bf60
parent455aef7a226e8a368e0cea0f446113631b9be527
util/lua: change arg name to reflect correctness

lua fns do not care about the argument count, they work with the index of
the item in the stack. Before library, there was just one item on the stack
so it worked out, however, with the library, the first item in the stack is
the library userdata, so, the fn would fail with the existing hard coded
setting of 1 for argc which can easily be confused with the number of
arguments passed to the fn.
src/util-lua-common.c