aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-22 18:06:39 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-22 18:06:39 +0000
commit3e0cbeaa55c93ec1ee25c6625daea5edf8c45081 (patch)
tree07f0de7b331212f69c09775d29397d651294c787 /epan
parent62d150a3b677e9c9e73133770e9bab5abdc6959d (diff)
Fix for the previous fix.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14168 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-rsvp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c
index 91320c4634..0daf8700cb 100644
--- a/epan/dissectors/packet-rsvp.c
+++ b/epan/dissectors/packet-rsvp.c
@@ -3336,12 +3336,12 @@ dissect_rsvp_ero_rro_subobjects (proto_tree *ti, proto_tree *rsvp_object_tree,
}
- l += tvb_get_guint8(tvb, offset+l+1);
- if (l < 1) {
+ if (tvb_get_guint8(tvb, offset+l+1) < 1) {
proto_tree_add_text(rsvp_ro_subtree, tvb, offset+l+1, 1,
"Invalid length: %u", tvb_get_guint8(tvb, offset+l+1));
return;
}
+ l += tvb_get_guint8(tvb, offset+l+1);
if (l < obj_length - 4) {
if (i < 4)
proto_item_append_text(ti, ", ");