summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print-ldp.c4
1 files changed, 2 insertions, 2 deletions
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)