diff options
Diffstat (limited to 'epan/dissectors/packet-mactelnet.c')
-rw-r--r-- | epan/dissectors/packet-mactelnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mactelnet.c b/epan/dissectors/packet-mactelnet.c index f7e5092e6f..e13c507084 100644 --- a/epan/dissectors/packet-mactelnet.c +++ b/epan/dissectors/packet-mactelnet.c @@ -116,7 +116,7 @@ dissect_mactelnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat guint16 type; /* Check that there's enough data */ - if (tvb_captured_length(tvb) < 18) + if (tvb_length(tvb) < 18) return 0; /* Get the type byte */ |