]> The Tcpdump Group git mirrors - tcpdump/commitdiff
NSH: Update an error message
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 15 May 2023 07:49:50 +0000 (09:49 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 12 Oct 2023 12:58:38 +0000 (14:58 +0200)
This change will avoid having the keyword "invalid" twice as:
(invalid length for the MD type) (invalid)

(cherry picked from commit b1c4b0f32d7565dc2e40161ee7a933d0f1bc7a58)

print-nsh.c

index db78dee62b5c3950ea3715d71ed3c4f39c258112..3ea90fe677b91a526dd76d2f30b22aab0c7b70f2 100644 (file)
@@ -181,7 +181,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len)
 
         if (md_type == MD_TYPE1) {
             if (length != 6) {
-                ND_PRINT(" (invalid length for the MD type)");
+                ND_PRINT(" (length for the MD type)");
                 goto invalid;
             }
             for (n = 0; n < length - 2; n++) {