X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/521ac1db3f6ba4654aa94227d9c146ab55c7d84f..bdf7eacfa10c7d8d05ed25e55b619ba32ecc40cc:/print-ldp.c diff --git a/print-ldp.c b/print-ldp.c index b05a1218..b5724450 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -354,8 +354,8 @@ ldp_tlv_print(netdissect_options *ndo, case LDP_FEC_PREFIX: TLV_TCHECK(2); af = GET_BE_U_2(tptr); - tptr+=LDP_TLV_ADDRESS_LIST_AFNUM_LEN; - tlv_tlen-=LDP_TLV_ADDRESS_LIST_AFNUM_LEN; + tptr+=2; + tlv_tlen-=2; if (af == AFNUM_INET) { i=decode_prefix4(ndo, tptr, tlv_tlen, buf, sizeof(buf)); if (i == -2)