aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tapa.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-tapa.c')
-rw-r--r--epan/dissectors/packet-tapa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tapa.c b/epan/dissectors/packet-tapa.c
index 49bc6e4845..2aa0c3745b 100644
--- a/epan/dissectors/packet-tapa.c
+++ b/epan/dissectors/packet-tapa.c
@@ -426,7 +426,7 @@ test_tapa_discover(tvbuff_t *tvb)
guint8 type, req_type;
guint16 length;
- if (tvb_length(tvb) < 4)
+ if (tvb_captured_length(tvb) < 4)
return FALSE;
/* Type(1 byte) <= 5, unknown(1 byte), length(2 bytes) */
@@ -451,7 +451,7 @@ test_tapa_tunnel(tvbuff_t *tvb)
{
/* If it isn't IPv4, it's TAPA. IPv4: Version(1 byte) = 4,
length(2 bytes) >= 20 */
- if (tvb_length(tvb) < 4 ||
+ if (tvb_captured_length(tvb) < 4 ||
(tvb_get_guint8(tvb, 0) & 0xF0) >= 0x40 ||
tvb_get_ntohs(tvb, 2) > 0 ||
tvb_get_guint8(tvb, 1) > 1) { /* Is tunnel type known? */