diff options
Diffstat (limited to 'epan/dissectors/packet-waveagent.c')
-rw-r--r-- | epan/dissectors/packet-waveagent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-waveagent.c b/epan/dissectors/packet-waveagent.c index 818d05d94a..a90ec93064 100644 --- a/epan/dissectors/packet-waveagent.c +++ b/epan/dissectors/packet-waveagent.c @@ -1007,7 +1007,7 @@ static int dissect_waveagent(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree guint32 wa_payload_offset; /* Check that there's enough data */ - if (tvb_captured_length(tvb) < 52 ) + if (tvb_length(tvb) < 52 ) return 0; magic_number = tvb_get_ntohl(tvb, 16) & 0x0FFFFFFF; /* Mask magic number off */ @@ -1076,7 +1076,7 @@ static int dissect_waveagent(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree } /* Return the amount of data this dissector was able to dissect */ - return tvb_captured_length(tvb); + return tvb_length(tvb); } static gboolean dissect_waveagent_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) |