summaryrefslogtreecommitdiff
path: root/print-dsa.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-04-16 11:43:45 -0700
committerGuy Harris <guy@alum.mit.edu>2019-04-16 11:43:45 -0700
commit59c57f40fe6548ba92d46f02b2a4122a704f8691 (patch)
tree7dbf3cb8422d620b73cd07f8b71326b2f4015a2e /print-dsa.c
parent01b4db0cae21bbd2764053b8b4707ec09990a068 (diff)
downloadtcpdump-59c57f40fe6548ba92d46f02b2a4122a704f8691.tar.gz
Use GET macros to fetch packet data.
Diffstat (limited to 'print-dsa.c')
-rw-r--r--print-dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-dsa.c b/print-dsa.c
index 7a6968ab..3d142b28 100644
--- a/print-dsa.c
+++ b/print-dsa.c
@@ -68,7 +68,7 @@
* b12: To_CPU's Code[0]
*/
-#define TOK(tag, byte, mask, shift) ((((const u_char *) tag)[byte] & (mask)) >> (shift))
+#define TOK(tag, byte, mask, shift) ((GET_U_1(&(((const u_char *) tag)[byte])) & (mask)) >> (shift))
#define DSA_LEN 4
#define DSA_MODE(tag) TOK(tag, 0, 0xc0, 6)