]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-atm.c
Use more the ND_TCHECK_1() macro
[tcpdump] / print-atm.c
index 43f61fcdef1ae4d6351ca17c291c2a5f1920d975..616bc4f892cba46c0494e0994ae8f2c761540c1e 100644 (file)
@@ -349,14 +349,14 @@ sig_print(netdissect_options *ndo,
 {
        uint32_t call_ref;
 
-       ND_TCHECK(p[PROTO_POS]);
+       ND_TCHECK_1(p + PROTO_POS);
        if (EXTRACT_U_1(p + PROTO_POS) == Q2931) {
                /*
                 * protocol:Q.2931 for User to Network Interface
                 * (UNI 3.1) signalling
                 */
                ND_PRINT((ndo, "Q.2931"));
-               ND_TCHECK(p[MSG_TYPE_POS]);
+               ND_TCHECK_1(p + MSG_TYPE_POS);
                ND_PRINT((ndo, ":%s ",
                    tok2str(msgtype2str, "msgtype#%d", EXTRACT_U_1(p + MSG_TYPE_POS))));