]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-zeromq.c
Use more the EXTRACT_U_1() macro (46/n)
[tcpdump] / print-zeromq.c
index 8d34fc6aa1dddad748ba40503a06d3f3e5d8d89c..004750ba7b3df48d48b3d88766327e148c02a326 100644 (file)
@@ -82,7 +82,7 @@ zmtp1_print_frame(netdissect_options *ndo, const u_char *cp, const u_char *ep)
        ND_PRINT((ndo, "\n\t"));
        ND_TCHECK_1(cp); /* length/0xFF */
 
-       if (cp[0] != 0xFF) {
+       if (EXTRACT_U_1(cp) != 0xFF) {
                header_len = 1; /* length */
                body_len_declared = cp[0];
                ND_PRINT((ndo, " frame flags+body  (8-bit) length %" PRIu64, body_len_declared));