]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-dsa.c
Fix dissection of auxiliary security header.
[tcpdump] / print-dsa.c
index 7a6968ab9098723c4c56afa3512dbc9239bec3f2..3d142b28faf38c58d3fbb0bc5aad2127fa79b4fb 100644 (file)
@@ -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)