From d73fdc7079df7875e51d88cf763c0453e8f7c1a8 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 4 Jun 2017 17:35:15 -0400 Subject: Remove "length only" check for dissectors that use tcp_dissect_pdus. If a TCP segment is small enough, dissectors that have a only a length check determining if it's their packet or not before calling tcp_dissect_pdus will throw out packets that are probably destined for them. Change-Id: I78034307b56aa537943191a6887166577936a6a3 Reviewed-on: https://code.wireshark.org/review/21950 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-hartip.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'epan/dissectors/packet-hartip.c') diff --git a/epan/dissectors/packet-hartip.c b/epan/dissectors/packet-hartip.c index 79bedc76f0..9aa9665ed9 100644 --- a/epan/dissectors/packet-hartip.c +++ b/epan/dissectors/packet-hartip.c @@ -1385,9 +1385,6 @@ static int dissect_hartip_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { - if (!tvb_bytes_exist(tvb, 0, HARTIP_HEADER_LENGTH)) - return 0; - tcp_dissect_pdus(tvb, pinfo, tree, hartip_desegment, HARTIP_HEADER_LENGTH, get_dissect_hartip_len, dissect_hartip_pdu, data); return tvb_reported_length(tvb); -- cgit v1.2.3