]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/ipproto: Add init/release functions
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 17 Feb 2022 16:05:22 +0000 (11:05 -0500)
committerVictor Julien <vjulien@oisf.net>
Thu, 24 Feb 2022 17:23:28 +0000 (18:23 +0100)
Issue: 5072

This commit insures that the protocol name hashtables are initialized
and released.

src/suricata.c

index f0bf6ff68d1d01812c1b1292d009ccf63bd33266..84c988b8366a46398457f0f8d1351373c5d5d30c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2021 Open Information Security Foundation
+/* Copyright (C) 2007-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -375,6 +375,7 @@ void GlobalsInitPreConfig(void)
     TimeInit();
     SupportFastPatternForSigMatchTypes();
     SCThresholdConfGlobalInit();
+    SCProtoNameInit();
 }
 
 static void GlobalsDestroy(SCInstance *suri)
@@ -402,6 +403,7 @@ static void GlobalsDestroy(SCInstance *suri)
     LiveDeviceListClean();
     OutputDeregisterAll();
     FeatureTrackingRelease();
+    SCProtoNameRelease();
     TimeDeinit();
     if (!suri->disabled_detect) {
         SCReferenceConfDeinit();