X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ed85e20e4d6a27d5405f37366dd34b64c10a9211..ff23dba40e728115b878b009ec299b47b924991d:/print-rsvp.c diff --git a/print-rsvp.c b/print-rsvp.c index 3f96cb25..51ab9f8a 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -658,8 +658,7 @@ _U_ while(tlen>=sizeof(struct rsvp_object_header)) { /* did we capture enough for fully decoding the object header ? */ - if (!ND_TTEST2(*tptr, sizeof(struct rsvp_object_header))) - goto trunc; + ND_TCHECK2(*tptr, sizeof(struct rsvp_object_header)); rsvp_obj_header = (const struct rsvp_object_header *)tptr; rsvp_obj_len=EXTRACT_16BITS(rsvp_obj_header->length);