]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: bump detect engine version for tenant reload 8635/head
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 10 Mar 2023 10:28:26 +0000 (11:28 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 27 Mar 2023 19:46:31 +0000 (21:46 +0200)
Because the engine version is used to free the old
variables and not the new ones.
As is done in DetectEngineReload.

Ticket: #5866

src/detect-engine.c

index 485d691c117bad552acdbee7181cefaac6bcb254..6aef3d4efe2d1939ebf6cb4ad71e75f9af462cba 100644 (file)
@@ -4606,6 +4606,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;