From 57ed5dfd32d6bdf40d49a480cebb6c5a2e8aaaae Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Mon, 30 Sep 2013 20:21:15 +0530 Subject: [PATCH] Fix return value from DetectProtoParse() which is used by probing parser. --- src/app-layer-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index e5f2d68e2d..4ef8d46138 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -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);