From: Francois-Xavier Le Bail Date: Sat, 13 May 2023 13:43:38 +0000 (+0200) Subject: DTP: Update an error message X-Git-Tag: tcpdump-4.99.5~199 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/fa18374326b699df99ef2518afaf8cb8185775fe DTP: Update an error message This change will avoid having the keyword "invalid" twice as : [invalid TLV length nnn] (invalid) (cherry picked from commit f4780fb4246a57774a0917c5dcd2fd4f727e6456) --- diff --git a/print-dtp.c b/print-dtp.c index a1ae4ba4..1d790f9b 100644 --- a/print-dtp.c +++ b/print-dtp.c @@ -84,7 +84,7 @@ dtp_print(netdissect_options *ndo, const u_char *tptr, u_int length) /* infinite loop check */ if (len < 4 || len > length) { - ND_PRINT("[invalid TLV length %u]", len); + ND_PRINT("[TLV length %u]", len); goto invalid; }