aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tapa.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2007-03-14 15:40:44 +0000
committerJörg Mayer <jmayer@loplof.de>2007-03-14 15:40:44 +0000
commite2c6534c5e1e6854c15a2986d4b566fb2c079c1d (patch)
tree546a3b770a447b1c9c68c1efb2e8977d6eaeb40d /epan/dissectors/packet-tapa.c
parent96838a7064c68d34d8a3b7f4333db6233bc7130e (diff)
Improve the heuristic for the tapa discovery classification.
This should fix bug 1437. svn path=/trunk/; revision=21025
Diffstat (limited to 'epan/dissectors/packet-tapa.c')
-rw-r--r--epan/dissectors/packet-tapa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tapa.c b/epan/dissectors/packet-tapa.c
index 8842455c76..6fad7f13b7 100644
--- a/epan/dissectors/packet-tapa.c
+++ b/epan/dissectors/packet-tapa.c
@@ -421,8 +421,10 @@ test_tapa_discover(tvbuff_t *tvb)
{
/* Type(1 byte) <= 5, unknown(1 byte), length(2 bytes) */
if ( !tvb_bytes_exist(tvb, 0, 4) ||
+ tvb_get_guint8(tvb, 0) < 1 ||
tvb_get_guint8(tvb, 0) > 5 ||
tvb_get_guint8(tvb, 1) > 8 ||
+ tvb_get_ntohs(tvb, 2) < 12 ||
tvb_get_ntohs(tvb, 2) > 1472) {
return FALSE;
}