]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-l2tp.c
L2TP: Use more the ND_TCHECK_2() macro
[tcpdump] / print-l2tp.c
index eb92833b6a8601fc50af7a5bd71563410ccb65e2..d900caa3741183970c28e4aa178b6b8621ed1cf0 100644 (file)
@@ -605,7 +605,7 @@ l2tp_avp_print(netdissect_options *ndo, const u_char *dat, int length)
 
        ND_PRINT((ndo, " "));
 
-       ND_TCHECK(*ptr);        /* Flags & Length */
+       ND_TCHECK_2(ptr);       /* Flags & Length */
        len = EXTRACT_BE_U_2(ptr) & L2TP_AVP_HDR_LEN_MASK;
 
        /* If it is not long enough to contain the header, we'll give up. */