]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mpls.c
Use more the EXTRACT_U_1() macro (41/n)
[tcpdump] / print-mpls.c
index 9d773214d3d7feb18384d94b3bb0c02aed762cc4..2b287e79d5ef5213de0be685316a33fe1449c2f9 100644 (file)
@@ -134,7 +134,7 @@ mpls_print(netdissect_options *ndo, const u_char *bp, u_int length)
                        /* nothing to print */
                        return;
                }
-               switch(*p) {
+               switch(EXTRACT_U_1(p)) {
 
                case 0x45:
                case 0x46: