]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer: better warning message when enabling by default
authorJason Ish <jason.ish@oisf.net>
Wed, 20 Apr 2022 17:10:35 +0000 (11:10 -0600)
committerVictor Julien <vjulien@oisf.net>
Wed, 20 Apr 2022 21:07:25 +0000 (23:07 +0200)
The warning message suggests that the configuration section doesn't
exist if when it does, but the "enabled" flag is not set. Clarify the
warning message that the enable status is not set.

src/app-layer-detect-proto.c

index 77c6abfec419c280761ffce8201873c4952010a4..5ee03f836e204ca27c4877d088104eaa2f965681 100644 (file)
@@ -1962,7 +1962,7 @@ int AppLayerProtoDetectConfProtoDetectionEnabled(const char *ipproto,
         if (node == NULL) {
 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
             SCLogWarning(SC_ERR_CONF_YAML_ERROR,
-                    "Config for protocol %s not found, so enabling by default."
+                    "App-Layer protocol %s enable status not set, so enabling by default."
                     " This behavior will change in Suricata 7, so please update"
                     " your config. See ticket #4744 for more details.",
                     alproto);