]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-babel.c
Use more the EXTRACT_U_1() macro (42/n)
[tcpdump] / print-babel.c
index d1931c82b523b07c10d4a1a383fe48f0cf12ac66..a3f540f802f7f8ff3e131b334f69133a4cec97f1 100644 (file)
@@ -60,7 +60,7 @@ babel_print(netdissect_options *ndo,
         ND_PRINT((ndo, " %d", EXTRACT_U_1(cp + 1)));
     }
 
-    switch(cp[1]) {
+    switch(EXTRACT_U_1(cp + 1)) {
     case 2:
         babel_print_v2(ndo, cp, length);
         break;