]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-802_11.c
Use more the EXTRACT_U_1() macro (55/n)
[tcpdump] / print-802_11.c
index f86fafe9bec1f731e3e385cc21e1084297d84cd1..17e128d97f9c57a161fc6725986825cc371ed47e 100644 (file)
@@ -1953,7 +1953,7 @@ extract_header_length(netdissect_options *ndo,
 static int
 extract_mesh_header_length(const u_char *p)
 {
-       return (p[0] &~ 3) ? 0 : 6*(1 + (p[0] & 3));
+       return (EXTRACT_U_1(p) &~ 3) ? 0 : 6*(1 + (EXTRACT_U_1(p) & 3));
 }
 
 /*