]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-radius.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (11/n)
[tcpdump] / print-radius.c
index 0df38221c80e4ad0faf8fd0b678fc277bb649544..59e5fc5a5e43e041428b993733e84d3e057adb7b 100644 (file)
@@ -625,7 +625,7 @@ print_attr_string(netdissect_options *ndo,
            if (length < 1)
               goto trunc;
            ND_PRINT((ndo, "%s (0x%02x) ",
-                  tok2str(rfc4675_tagged,"Unknown tag",*data),
+                  tok2str(rfc4675_tagged,"Unknown tag",EXTRACT_8BITS(data)),
                   *data));
            data++;
            length--;
@@ -805,7 +805,7 @@ print_attr_num(netdissect_options *ndo,
 
         case EGRESS_VLAN_ID:
             ND_PRINT((ndo, "%s (0x%02x) ",
-                   tok2str(rfc4675_tagged,"Unknown tag",*data),
+                   tok2str(rfc4675_tagged,"Unknown tag",EXTRACT_8BITS(data)),
                    *data));
             data++;
             ND_PRINT((ndo, "%d", EXTRACT_BE_24BITS(data)));