summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-12-08 17:46:02 -0800
committerGuy Harris <guy@alum.mit.edu>2017-12-08 17:46:02 -0800
commitf2046003ab70e7a1c8bc7ec7a2f880f2d5e07c4a (patch)
tree121231fcdaaa8866e9ad22fc009031618f57c309 /print-ldp.c
parent498aed69df86a3402031dd0cb686ecbf6cc46449 (diff)
downloadtcpdump-f2046003ab70e7a1c8bc7ec7a2f880f2d5e07c4a.tar.gz
More EXTRACT_U_1() replacing direct dereferences.
Diffstat (limited to 'print-ldp.c')
-rw-r--r--print-ldp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ldp.c b/print-ldp.c
index 1131fe55..4e71ade4 100644
--- a/print-ldp.c
+++ b/print-ldp.c
@@ -335,7 +335,7 @@ ldp_tlv_print(netdissect_options *ndo,
case LDP_TLV_FEC:
TLV_TCHECK(1);
- fec_type = *tptr;
+ fec_type = EXTRACT_U_1(tptr);
ND_PRINT((ndo, "\n\t %s FEC (0x%02x)",
tok2str(ldp_fec_values, "Unknown", fec_type),
fec_type));
@@ -421,7 +421,7 @@ ldp_tlv_print(netdissect_options *ndo,
TLV_TCHECK(vc_info_len);
while (vc_info_len > 2) {
- vc_info_tlv_type = *tptr;
+ vc_info_tlv_type = EXTRACT_U_1(tptr);
vc_info_tlv_len = EXTRACT_U_1(tptr + 1);
if (vc_info_tlv_len < 2)
break;