X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/dc9744f7c6f1aa8f676f84829ee9a69a52952f94..1ed63b5d0630a4b5b4a8d31174d9f3e95a970913:/print-ldp.c diff --git a/print-ldp.c b/print-ldp.c index 19e87b7f..680a7e1e 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -253,7 +253,7 @@ ldp_tlv_print(netdissect_options *ndo, ldp_tlv_header = (const struct ldp_tlv_header *)tptr; ND_TCHECK_SIZE(ldp_tlv_header); tlv_len=GET_BE_U_2(ldp_tlv_header->length); - if (tlv_len + 4 > msg_tlen) { + if (tlv_len + 4U > msg_tlen) { ND_PRINT("\n\t\t TLV contents go past end of message"); return 0; }