From: Guy Harris Date: Sat, 9 Dec 2017 01:43:11 +0000 (-0800) Subject: Some more EXTRACT_U_1() calls replacing direct fetches. X-Git-Tag: tcpdump-4.99-bp~1669 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/93e131bf3768938d4698baddaa4c4f793ebd1ffb Some more EXTRACT_U_1() calls replacing direct fetches. --- diff --git a/print-juniper.c b/print-juniper.c index f6597cd9..b74f00f5 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -1137,7 +1137,7 @@ juniper_read_tlv_value(const u_char *p, u_int tlv_type, u_int tlv_len) if (tlv_type < 128) { switch (tlv_len) { case 1: - tlv_value = *p; + tlv_value = EXTRACT_U_1(p); break; case 2: tlv_value = EXTRACT_LE_U_2(p); @@ -1156,7 +1156,7 @@ juniper_read_tlv_value(const u_char *p, u_int tlv_type, u_int tlv_len) /* TLVs >= 128 are big endian encoded */ switch (tlv_len) { case 1: - tlv_value = *p; + tlv_value = EXTRACT_U_1(p); break; case 2: tlv_value = EXTRACT_BE_U_2(p);