aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tapa.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2008-03-06 14:05:22 +0000
committerJörg Mayer <jmayer@loplof.de>2008-03-06 14:05:22 +0000
commitc3a10dd79c9d50ba115654529f34dfd30311121d (patch)
treebe31813f37c97c4d5c767d16d17343f6a9c00068 /epan/dissectors/packet-tapa.c
parentdc6789a84f88d23aaf25432466b14e388671595b (diff)
Small fix for heuristic: it missed a tapa packet
svn path=/trunk/; revision=24574
Diffstat (limited to 'epan/dissectors/packet-tapa.c')
-rw-r--r--epan/dissectors/packet-tapa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-tapa.c b/epan/dissectors/packet-tapa.c
index a9c487f171..478aa74500 100644
--- a/epan/dissectors/packet-tapa.c
+++ b/epan/dissectors/packet-tapa.c
@@ -436,11 +436,11 @@ test_tapa_discover(tvbuff_t *tvb)
length = tvb_get_ntohs(tvb, 2);
req_type = tvb_get_guint8(tvb, 4);
- if (type < TAPA_TYPE_REQUEST ||
- type > TAPA_TYPE_REPLY_NEW ||
- unknown > 8 ||
- length < 12 ||
- length > 1472 ||
+ if (type < TAPA_TYPE_REQUEST ||
+ type > TAPA_TYPE_REPLY_NEW ||
+ (unknown > 8 && unknown != 0x30) ||
+ length < 12 ||
+ length > 1472 ||
(type == TAPA_TYPE_REQUEST && (req_type < TAPA_REQUEST_SERIAL || req_type > TAPA_REQUEST_MODEL))) {
return FALSE;
}