detect/proto: Warn if proto not found in config

Ticket 4744
pull/6824/head
Shivani Bhardwaj 5 years ago
parent 9410264a0d
commit 0a51ff3999

@ -1960,7 +1960,13 @@ int AppLayerProtoDetectConfProtoDetectionEnabled(const char *ipproto,
node = ConfGetNode(param);
if (node == NULL) {
SCLogDebug("Entry for %s not found.", param);
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
SCLogWarning(SC_ERR_CONF_YAML_ERROR,
"Config for protocol %s not found, so enabling by default."
" This behavior will change in Suricata 7, so please update"
" your config. See ticket #4744 for more details.",
alproto);
#endif
goto enabled;
}
}

Loading…
Cancel
Save