NSH: Update an error message

This change will avoid having the keyword "invalid" twice as:
(invalid length for the MD type) (invalid)
This commit is contained in:
Francois-Xavier Le Bail 2023-05-15 09:49:50 +02:00
parent cc59ecca5c
commit b1c4b0f32d

View 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++) {