X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fe1c2f0d7fb9221936b0d54a670b9f2eea2b72c4..cb9b66505924ae735e5ef772a434e72089231076:/print-ldp.c diff --git a/print-ldp.c b/print-ldp.c index ed176b70..df43da78 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -384,7 +384,7 @@ ldp_tlv_print(netdissect_options *ndo, * Pseudowire Types. */ TLV_TCHECK(7); - vc_info_len = *(tptr+2); + vc_info_len = EXTRACT_8BITS(tptr + 2); /* * According to RFC 4908, the VC info Length field can be zero, @@ -422,7 +422,7 @@ ldp_tlv_print(netdissect_options *ndo, while (vc_info_len > 2) { vc_info_tlv_type = *tptr; - vc_info_tlv_len = *(tptr+1); + vc_info_tlv_len = EXTRACT_8BITS(tptr + 1); if (vc_info_tlv_len < 2) break; if (vc_info_len < vc_info_tlv_len)