aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Ďurkovič <md@bts.sk>2015-04-09 09:07:36 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-04-09 08:19:06 +0000
commit054a1aab5095aef72334686d8033012634c2d61c (patch)
treef60a203ff315b637f0ef4c6568db1a8bd5a40aed
parentd65f8961dc1caa7aca92c3d1c7b797196a992486 (diff)
TRILL: Fix incorrect header length
Change-Id: I508ee3d4143235157f223e5b9cd16d70cdf1fa72 Reviewed-on: https://code.wireshark.org/review/7997 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-trill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-trill.c b/epan/dissectors/packet-trill.c
index 98ab5339cc..4f1cb4683b 100644
--- a/epan/dissectors/packet-trill.c
+++ b/epan/dissectors/packet-trill.c
@@ -106,7 +106,8 @@ dissect_trill( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _
op_len = tvb_get_bits( tvb, 5, 5, ENC_BIG_ENDIAN ) * TRILL_OP_LENGTH_BYTE_UNITS ;
if (tree) {
- ti = proto_tree_add_item( tree, proto_trill, tvb, 0, -1, ENC_NA ) ;
+ ti = proto_tree_add_item( tree, proto_trill, tvb, 0,
+ TRILL_MIN_FRAME_LENGTH + op_len, ENC_NA ) ;
trill_tree = proto_item_add_subtree( ti, ett_trill ) ;
/* Parse the bit fields, i.e. V, R, M, Op-Length, Hop Count. */