aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-07-27 10:00:58 -0400
committerDave Barach <dave@barachs.net>2016-07-27 11:15:44 -0400
commitb2a6e25067a41def7d5795df6d07231b55051ab2 (patch)
treeb48ea3d18dd04c71f757daceeae3f03f67f12a47 /vnet
parent5afccb2578d767e3a2be4316211ff38006c336a6 (diff)
VPP-189 coverity warning cleanups
Change-Id: Ia4fbf4352119504e022b89d10d44a5259d94f316 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/cdp/cdp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/cdp/cdp_input.c b/vnet/vnet/cdp/cdp_input.c
index d2d2306e01e..f7d54344283 100644
--- a/vnet/vnet/cdp/cdp_input.c
+++ b/vnet/vnet/cdp/cdp_input.c
@@ -461,7 +461,7 @@ u8 * cdp_input_format_trace (u8 * s, va_list * args)
tlv = (cdp_tlv_t *)cur;
tlv->t = ntohs(tlv->t);
tlv->l = ntohs(tlv->l);
- if (tlv->t > ARRAY_LEN(tlv_handlers)) {
+ if (tlv->t >= ARRAY_LEN(tlv_handlers)) {
s = format (s, "BAD_TLV\n");
break;
}