X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/577621026df8d4a33a34d4e125f9ec964fc0e53c..e534e38f78ca28e849fd91eba2a962347b049faf:/print-juniper.c diff --git a/print-juniper.c b/print-juniper.c index d9c45200..cb08dc0f 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -1234,8 +1234,10 @@ juniper_parse_header(netdissect_options *ndo, ND_TCHECK2(tptr[0], jnx_ext_len); while (jnx_ext_len > JUNIPER_EXT_TLV_OVERHEAD) { - tlv_type = *(tptr++); - tlv_len = *(tptr++); + tlv_type = EXTRACT_8BITS(tptr); + tptr++; + tlv_len = EXTRACT_8BITS(tptr); + tptr++; tlv_value = 0; /* sanity checks */