X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/da20bc56d6100b5275d6f85c4a25bac1dab4e57e..96afbce6fc40e89e4f215db5838ae00979185e11:/print-sctp.c diff --git a/print-sctp.c b/print-sctp.c index 9f169654..66d48849 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -586,7 +586,7 @@ sctp_print(netdissect_options *ndo, break; } - ND_TCHECK2(*bp, chunkLength); + ND_TCHECK_LEN(bp, chunkLength); bp += sizeof(*chunkDescPtr); sctpPacketLengthRemaining -= sizeof(*chunkDescPtr); @@ -806,7 +806,7 @@ sctp_print(netdissect_options *ndo, * Fail if the alignment padding isn't in the captured data. * Otherwise, skip it. */ - ND_TCHECK2(*bp, align); + ND_TCHECK_LEN(bp, align); bp += align; sctpPacketLengthRemaining -= align; }