]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fix logic error in sanity check
authorEric Leblond <eric@regit.org>
Wed, 28 Nov 2012 16:52:43 +0000 (17:52 +0100)
committerEric Leblond <eric@regit.org>
Wed, 28 Nov 2012 16:52:43 +0000 (17:52 +0100)
src/app-layer-parser.c

index 9ee40b8d1c0b42f277c066e755684c6184b856e5..0995b8c00c5d0fc3a5cc68c5c64a2c79e3c41f95 100644 (file)
@@ -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";
     }