app-layer: fix 'detection-only' keyword

If we follow the description in the yaml file, we should disable
parsing if 'detection-only' keyword is used.
pull/1279/head
Eric Leblond 11 years ago committed by Victor Julien
parent 969abc2ccd
commit ff8dae3b75

@ -280,7 +280,7 @@ int AppLayerParserConfParserEnabled(const char *ipproto,
} else if (strcasecmp(node->val, "no") == 0) {
goto disabled;
} else if (strcasecmp(node->val, "detection-only") == 0) {
goto enabled;
goto disabled;
} else {
SCLogError(SC_ERR_FATAL, "Invalid value found for %s.", param);
exit(EXIT_FAILURE);

Loading…
Cancel
Save