aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2015-07-24 14:51:37 -0400
committerAnders Broman <a.broman58@gmail.com>2015-07-25 13:00:44 +0000
commit3fc4a831e035604b0af14ed8a5c9f6596a3448d0 (patch)
tree99e9e2e1001fb5f728c349898188fea977ae1aeb
parentc425334394ea22b55a48b282a77553584ede4efc (diff)
Fix ptvcursor_add() so it can dissect the last bytes in a TVB again.
ptvc->offset has already been incremented by the item length so don't use it as the offset to test_length(); we need to use the original offset. Problem introduced by Idfd258c734e7a946300b2564bebf6e4cb374c8d1 . Change-Id: I0421539bde6e8eb7b5aa3e22dbb0ca8098e88d6f Reviewed-on: https://code.wireshark.org/review/9779 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 843359b88c..f9c383759b 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -2230,7 +2230,7 @@ ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length,
ptvc->offset += n;
}
- test_length(hfinfo, ptvc->tvb, ptvc->offset, item_length);
+ test_length(hfinfo, ptvc->tvb, offset, item_length);
/* Coast clear. Try and fake it */
TRY_TO_FAKE_THIS_ITEM(ptvc->tree, hfindex, hfinfo);