]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix return value from DetectProtoParse() which is used by probing 568/head
authorAnoop Saldanha <anoopsaldanha@gmail.com>
Mon, 30 Sep 2013 14:51:15 +0000 (20:21 +0530)
committerAnoop Saldanha <anoopsaldanha@gmail.com>
Mon, 30 Sep 2013 14:51:16 +0000 (20:21 +0530)
parser.

src/app-layer-parser.c

index e5f2d68e2d2d109a401e56b9c0733db1fc1d145f..4ef8d4613809de4448fc13bd2004f89d06b24663 100644 (file)
@@ -1687,7 +1687,7 @@ void AppLayerParseProbingParserPorts(const char *al_proto_name, uint16_t al_prot
     TAILQ_FOREACH(proto_node, &node->head, next) {
         DetectProto dp;
         int ip_proto = DetectProtoParse(&dp, proto_node->name);
-        if (ip_proto <= 0) {
+        if (ip_proto < 0) {
             SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY, "Invalid entry for "
                        "%s.%s", param, proto_node->name);
             exit(EXIT_FAILURE);