aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/profinet/packet-pn-mrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/profinet/packet-pn-mrp.c')
-rw-r--r--plugins/profinet/packet-pn-mrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/profinet/packet-pn-mrp.c b/plugins/profinet/packet-pn-mrp.c
index 2f03ef73d6..2aff5279c4 100644
--- a/plugins/profinet/packet-pn-mrp.c
+++ b/plugins/profinet/packet-pn-mrp.c
@@ -326,7 +326,7 @@ dissect_PNMRP_PDU(tvbuff_t *tvb, int offset,
/* the rest of the packet has 4byte alignment regarding to the beginning of the next TLV block! */
/* XXX - do we have to free this new tvb below? */
- tvb_new = tvb_new_subset(tvb, offset, -1, -1);
+ tvb_new = tvb_new_subset_remaining(tvb, offset);
offset = 0;
for(i=0; tvb_length_remaining(tvb, offset) > 0; i++) {