]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-babel.c
Use more the EXTRACT_U_1() macro (46/n)
[tcpdump] / print-babel.c
index 49fb81deae36751853f07682d31f37aa5a63e924..d571bc119649d0e3d6e9d446aafc619ead07d145 100644 (file)
@@ -53,7 +53,7 @@ babel_print(netdissect_options *ndo,
 
     ND_TCHECK_4(cp);
 
-    if(cp[0] != 42) {
+    if(EXTRACT_U_1(cp) != 42) {
         ND_PRINT((ndo, " invalid header"));
         return;
     } else {