]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Some more EXTRACT_U_1() calls replacing direct fetches.
authorGuy Harris <[email protected]>
Sat, 9 Dec 2017 01:43:11 +0000 (17:43 -0800)
committerGuy Harris <[email protected]>
Sat, 9 Dec 2017 01:43:11 +0000 (17:43 -0800)
print-juniper.c

index f6597cd95840ed4982bab15ce15ce1807c86ecb6..b74f00f539e81f86669b25b7eff6051f208d3dd5 100644 (file)
@@ -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);