diff options
Diffstat (limited to 'epan/dissectors/packet-9p.c')
-rw-r--r-- | epan/dissectors/packet-9p.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-9p.c b/epan/dissectors/packet-9p.c index efc73994e0..6b634dde98 100644 --- a/epan/dissectors/packet-9p.c +++ b/epan/dissectors/packet-9p.c @@ -1527,7 +1527,7 @@ static int dissect_9P_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre len = tvb_reported_length_remaining(tvb, offset); reportedlen = ((gint)u32&0xffff) > len ? len : (gint)u32&0xffff; - next_tvb = tvb_new_subset(tvb, offset, len, reportedlen); + next_tvb = tvb_new_subset_length_caplen(tvb, offset, len, reportedlen); call_data_dissector(next_tvb, pinfo, tree); offset += len; @@ -1548,7 +1548,7 @@ static int dissect_9P_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre offset += 4; len = tvb_reported_length_remaining(tvb, offset); reportedlen = ((gint)u32&0xffff) > len ? len : (gint)u32&0xffff; - next_tvb = tvb_new_subset(tvb, offset, len, reportedlen); + next_tvb = tvb_new_subset_length_caplen(tvb, offset, len, reportedlen); call_data_dissector(next_tvb, pinfo, tree); offset += len; |