From 45d2989e8b61c1c38d36a8a789e412bc97fdd020 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 8 Aug 2013 17:53:11 +0000 Subject: From Francesco Fondelli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9024 : In dissect_rsvp_lsp_attributes() there is a check for invalid Attributes TLV length that is no more correct in light of changes described in Section 14 of RFC 5420. This patch fixes that. svn path=/trunk/; revision=51224 --- epan/dissectors/packet-rsvp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-rsvp.c') diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c index a094ea9676..bb1f8f6617 100644 --- a/epan/dissectors/packet-rsvp.c +++ b/epan/dissectors/packet-rsvp.c @@ -5253,7 +5253,7 @@ dissect_rsvp_lsp_attributes(proto_tree *ti, proto_tree *rsvp_object_tree, tlv_type = tvb_get_ntohs(tvb, offset+tlv_off); tlv_len = tvb_get_ntohs(tvb, offset+tlv_off+2); - if ((tlv_len == 0) || (tlv_off+tlv_len > (obj_length-4))) { + if ((tlv_len == 0) || (tlv_off+tlv_len > obj_length)) { proto_tree_add_text(rsvp_object_tree, tvb, offset+tlv_off+2, 2, "Invalid length"); return; -- cgit v1.2.1