diff options
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/cdp/cdp_input.c | 2 |
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; } |