X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/bbedebc666a341d8e14922dce37a92766400c798..refs/pull/435/head:/print-dtp.c diff --git a/print-dtp.c b/print-dtp.c index cfdfed3e..5d84a770 100644 --- a/print-dtp.c +++ b/print-dtp.c @@ -53,8 +53,7 @@ dtp_print (netdissect_options *ndo, const u_char *pptr, u_int length) tptr = pptr; - if (!ND_TTEST2(*tptr, DTP_HEADER_LEN)) - goto trunc; + ND_TCHECK2(*tptr, DTP_HEADER_LEN); ND_PRINT((ndo, "DTPv%u, length %u", (*tptr), @@ -71,8 +70,7 @@ dtp_print (netdissect_options *ndo, const u_char *pptr, u_int length) while (tptr < (pptr+length)) { - if (!ND_TTEST2(*tptr, 4)) - goto trunc; + ND_TCHECK2(*tptr, 4); type = EXTRACT_16BITS(tptr); len = EXTRACT_16BITS(tptr+2);