diff mbox series

suricatta/wfx: Fix print_help call

Message ID A4490811-A0EB-4803-BD22-B801C86E9895@siemens.com
State Accepted
Headers show
Series suricatta/wfx: Fix print_help call | expand

Commit Message

Storm, Christian Nov. 28, 2023, 9:20 a.m. UTC
print_help() is in the suricatta_funcs Table,
fix calling this undefined function.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 suricatta/server_wfx.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/suricatta/server_wfx.lua b/suricatta/server_wfx.lua
index fd678863..3fd61b57 100644
--- a/suricatta/server_wfx.lua
+++ b/suricatta/server_wfx.lua
@@ -2044,7 +2044,7 @@  function M.suricatta_funcs.server_start(defaults, argv, fconfig)
         elseif opt == ":" then
             io.stderr:write("ERROR: Missing argument.\n")
             -- Note: .polldelay is in fconfig, make defaults __index it as well.
-            M.print_help(setmetatable((defaults or {}), { __index = fconfig }))
+            M.suricatta_funcs.print_help(setmetatable((defaults or {}), { __index = fconfig }))
             return suricatta.status.EINIT
         end
     end