]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Telnet: Remove a redundant ND_TCHECK_1 call
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 8 Dec 2020 16:20:35 +0000 (17:20 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 8 Dec 2020 16:20:35 +0000 (17:20 +0100)
Moreover:
Remove the trunc label.

print-telnet.c

index f760db9098bf82e235dfa6691f56e2c7a1b04a98..b0283f2047f7a38b305194a3066ab70ea69b8a60 100644 (file)
@@ -530,7 +530,6 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length)
 
                sp += l;
                length -= l;
-               ND_TCHECK_1(sp);
        }
        if (!first) {
                if (ndo->ndo_Xflag && 2 < ndo->ndo_vflag)
@@ -538,7 +537,4 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length)
                else
                        ND_PRINT("]");
        }
-       return;
-trunc:
-       nd_print_trunc(ndo);
 }