From 097f3c47ff266998ad4cfd13bfdab391426c83ef Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sun, 5 Jul 2020 11:28:48 +0200 Subject: [PATCH] TCP: Remove an useless test The length is tested in ldp_print(). --- print-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print-tcp.c b/print-tcp.c index 88870c65..79dc6c61 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -753,7 +753,7 @@ tcp_print(netdissect_options *ndo, msdp_print(ndo, bp, length); } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) { rpki_rtr_print(ndo, bp, length); - } else if (length > 0 && (IS_SRC_OR_DST_PORT(LDP_PORT))) { + } else if (IS_SRC_OR_DST_PORT(LDP_PORT)) { ldp_print(ndo, bp, length); } else if ((IS_SRC_OR_DST_PORT(NFS_PORT)) && length >= 4 && ND_TTEST_4(bp)) { -- 2.39.5