aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2016-01-19 19:47:12 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2016-01-19 19:11:31 +0000
commitfca54f8c0d44db111ecfb62643ce548b460acc3f (patch)
treea82a7b277378826e644bc676fb04f199be2c4a58
parent56bffba031dfd22aced907bcd44ec7c981a820f9 (diff)
Waveagent: fix heuristic dissector
Heuristics should be based on the captured data, not the reported one Change-Id: I6b9abdc80bb70c97196c6bddabb76efcccd58672 Reviewed-on: https://code.wireshark.org/review/13421 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--epan/dissectors/packet-waveagent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-waveagent.c b/epan/dissectors/packet-waveagent.c
index d2ba4eb38e..9e1ea2c02a 100644
--- a/epan/dissectors/packet-waveagent.c
+++ b/epan/dissectors/packet-waveagent.c
@@ -1002,7 +1002,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_reported_length(tvb) < 52 )
+ if (tvb_captured_length(tvb) < 52 )
return 0;
magic_number = tvb_get_ntohl(tvb, 16) & 0x0FFFFFFF; /* Mask magic number off */