fix logic error in sanity check

pull/231/head
Eric Leblond 12 years ago
parent 9c47ada771
commit b3d4285982

@ -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";
}

Loading…
Cancel
Save