diff options
Diffstat (limited to 'epan/dissectors/packet-moldudp64.c')
-rw-r--r-- | epan/dissectors/packet-moldudp64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-moldudp64.c b/epan/dissectors/packet-moldudp64.c index 2d8f7c9365..6f4d2edd6b 100644 --- a/epan/dissectors/packet-moldudp64.c +++ b/epan/dissectors/packet-moldudp64.c @@ -74,7 +74,7 @@ dissect_moldudp64_msgblk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint16 msglen, real_msglen, whole_len; gint remaining; - if (tvb_length_remaining(tvb, offset) < MOLDUDP64_MSGLEN_LEN) + if (tvb_captured_length_remaining(tvb, offset) < MOLDUDP64_MSGLEN_LEN) return 0; msglen = tvb_get_ntohs(tvb, offset); @@ -195,7 +195,7 @@ dissect_moldudp64(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat } /* Return the amount of data this dissector was able to dissect */ - return tvb_length(tvb); + return tvb_captured_length(tvb); } |