diff options
Diffstat (limited to 'epan/dissectors/packet-erldp.c')
-rw-r--r-- | epan/dissectors/packet-erldp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-erldp.c b/epan/dissectors/packet-erldp.c index 720d136113..e1f031cbbe 100644 --- a/epan/dissectors/packet-erldp.c +++ b/epan/dissectors/packet-erldp.c @@ -499,7 +499,7 @@ static int dissect_erldp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree break; case VERSION_MAGIC: - next_tvb = tvb_new_subset(tvb, offset, -1, 4 + msg_len - offset); + next_tvb = tvb_new_subset_length_caplen(tvb, offset, -1, 4 + msg_len - offset); offset += dissect_etf_pdu(next_tvb, pinfo, erldp_tree, "DistributionHeader"); if ((tvb_get_guint8(tvb, offset) == SMALL_TUPLE_EXT) && (tvb_get_guint8(tvb, offset + 2) == SMALL_INTEGER_EXT)) { ctl_op = tvb_get_guint8(tvb, offset + 3); |