diff options
Diffstat (limited to 'ldpd/labelmapping.c')
| -rw-r--r-- | ldpd/labelmapping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/labelmapping.c b/ldpd/labelmapping.c index cee9d527e8..13d3243124 100644 --- a/ldpd/labelmapping.c +++ b/ldpd/labelmapping.c @@ -724,9 +724,9 @@ tlv_decode_fec_elm(struct nbr *nbr, struct ldp_msg *msg, char *buf, map->fec.prefix.prefixlen = buf[off]; off += sizeof(uint8_t); if ((map->fec.prefix.af == AF_IPV4 - && map->fec.prefix.prefixlen > IPV4_MAX_PREFIXLEN) + && map->fec.prefix.prefixlen > IPV4_MAX_BITLEN) || (map->fec.prefix.af == AF_IPV6 - && map->fec.prefix.prefixlen > IPV6_MAX_PREFIXLEN)) { + && map->fec.prefix.prefixlen > IPV6_MAX_BITLEN)) { session_shutdown(nbr, S_BAD_TLV_VAL, msg->id, msg->type); return (-1); |
