Revert "Fixup: tvb_* -> tvb_captured"
[metze/wireshark/wip.git] / epan / dissectors / packet-vlan.c
index 92374da90cada3da8af6138df278e1f0d46993b3..4479ce67cb7fb4532c7244dc8d0d31111f1f318d 100644 (file)
@@ -180,7 +180,7 @@ dissect_vlan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     is_802_2 = TRUE;
 
     /* Don't throw an exception for this check (even a BoundsError) */
-    if (tvb_captured_length_remaining(tvb, 4) >= 2) {
+    if (tvb_length_remaining(tvb, 4) >= 2) {
       if (tvb_get_ntohs(tvb, 4) == 0xffff) {
         is_802_2 = FALSE;
       }