]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer: fix 'detection-only' keyword 1279/head
authorEric Leblond <eric@regit.org>
Fri, 19 Dec 2014 14:06:30 +0000 (15:06 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 23 Dec 2014 10:50:45 +0000 (11:50 +0100)
If we follow the description in the yaml file, we should disable
parsing if 'detection-only' keyword is used.

src/app-layer-parser.c

index ec45b0caf8a6c9047d3252d06e341f4bb68a86e4..c32f721c125190a0f4dffec26f5cf97b0653f865 100644 (file)
@@ -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);