diff options
Diffstat (limited to 'epan/dissectors/packet-dvmrp.c')
-rw-r--r-- | epan/dissectors/packet-dvmrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dvmrp.c b/epan/dissectors/packet-dvmrp.c index 6870cc42c4..3b6126375b 100644 --- a/epan/dissectors/packet-dvmrp.c +++ b/epan/dissectors/packet-dvmrp.c @@ -687,7 +687,7 @@ dissect_dvmrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int of /* we are not enabled, skip entire packet to be nice to the igmp layer. (so clicking on IGMP will display the data) */ - return offset+tvb_length_remaining(tvb, offset); + return offset+tvb_captured_length_remaining(tvb, offset); } item = proto_tree_add_item(parent_tree, proto_dvmrp, tvb, offset, -1, ENC_NA); @@ -698,7 +698,7 @@ dissect_dvmrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int of col_clear(pinfo->cinfo, COL_INFO); - if ((tvb_length_remaining(tvb, offset)>=8) + if ((tvb_captured_length_remaining(tvb, offset)>=8) && (((tvb_get_guint8(tvb, 6)==0xff) && (tvb_get_guint8(tvb, 7)==0x03)) || !strict_v3)) { |