From c64261f374d23a612d1f0ddf973a8c04172d6ae8 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 10 Mar 2023 11:28:26 +0100 Subject: [PATCH] detect: bump detect engine version for tenant reload Because the engine version is used to free the old variables and not the new ones. As is done in DetectEngineReload. Ticket: #5866 (cherry picked from commit d313b5d60598e143e6e97eca8ac35d6a01ec6014) --- src/detect-engine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detect-engine.c b/src/detect-engine.c index c89586cbf7..3bb3c3307c 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -4264,6 +4264,8 @@ int DetectEngineMTApply(void) /* walk free list, freeing the old_de_ctx */ DetectEnginePruneFreeList(); + // needed for VarNameStoreFree + DetectEngineBumpVersion(); SCLogDebug("old_de_ctx should have been freed"); return 0; -- 2.47.2