]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: bump detect engine version for tenant reload 8642/head
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 10 Mar 2023 10:28:26 +0000 (11:28 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 29 Mar 2023 06:10:02 +0000 (08:10 +0200)
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

index c89586cbf74c583d7f8c2bfcece26c5423d5ca1b..3bb3c3307c177596156a3988ba381a21937c18a1 100644 (file)
@@ -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;