From: Eric Leblond Date: Wed, 28 Nov 2012 16:52:43 +0000 (+0100) Subject: fix logic error in sanity check X-Git-Tag: suricata-1.4rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3d42859823ccc834dbf08fcd6f88e2470c9028f;p=thirdparty%2Fsuricata.git fix logic error in sanity check --- diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 9ee40b8d1c..0995b8c00c 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -532,7 +532,7 @@ uint16_t AppLayerGetProtoByName(const char *name) const char *AppLayerGetProtoString(int proto) { - if ((proto > ALPROTO_MAX) || (proto < 0)) { + if ((proto >= ALPROTO_MAX) || (proto < 0)) { return "Undefined"; }