From c578015edf9ff3919d58d03efdf41731ac5ddce5 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 2 May 2025 14:33:22 +0200 Subject: [PATCH] lua: remove unused code Since hooks, we do not need a specific SMTP buffer list id. --- src/detect-lua.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/detect-lua.c b/src/detect-lua.c index 049142471a..11c9fad7cf 100644 --- a/src/detect-lua.c +++ b/src/detect-lua.c @@ -72,7 +72,6 @@ static int DetectLuaSetup (DetectEngineCtx *, Signature *, const char *); static void DetectLuaRegisterTests(void); #endif static void DetectLuaFree(DetectEngineCtx *, void *); -static int g_smtp_generic_list_id = 0; /** * \brief Registration function for keyword: lua @@ -89,12 +88,6 @@ void DetectLuaRegister(void) #ifdef UNITTESTS sigmatch_table[DETECT_LUA].RegisterTests = DetectLuaRegisterTests; #endif - g_smtp_generic_list_id = DetectBufferTypeRegister("smtp_generic"); - - DetectAppLayerInspectEngineRegister("smtp_generic", ALPROTO_SMTP, SIG_FLAG_TOSERVER, 0, - DetectEngineInspectGenericList, NULL); - DetectAppLayerInspectEngineRegister("smtp_generic", ALPROTO_SMTP, SIG_FLAG_TOCLIENT, 0, - DetectEngineInspectGenericList, NULL); SCLogDebug("registering lua rule option"); } -- 2.47.2