From: Anoop Saldanha Date: Mon, 30 Sep 2013 14:51:15 +0000 (+0530) Subject: Fix return value from DetectProtoParse() which is used by probing X-Git-Tag: suricata-2.0beta2~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F568%2Fhead;p=thirdparty%2Fsuricata.git Fix return value from DetectProtoParse() which is used by probing parser. --- 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);