]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DTP: Update an error message
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 13 May 2023 13:43:38 +0000 (15:43 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 13 May 2023 13:43:43 +0000 (15:43 +0200)
This change will avoid having the keyword "invalid" twice as :
[invalid TLV length nnn] (invalid)

print-dtp.c

index a1ae4ba4d5aa047ec6efc81ad12328fa1d09aa51..1d790f9bd3a95de8b92a81cb863dd25ac3ba7276 100644 (file)
@@ -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;
         }