diff options
Diffstat (limited to 'epan/dissectors/packet-sync.c')
-rw-r--r-- | epan/dissectors/packet-sync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sync.c b/epan/dissectors/packet-sync.c index cfea027642..b4ecec6589 100644 --- a/epan/dissectors/packet-sync.c +++ b/epan/dissectors/packet-sync.c @@ -85,11 +85,11 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ if ( type > 3 ) return 0; - if ( type == 0 && tvb_length(tvb) < 18) { + if ( type == 0 && tvb_captured_length(tvb) < 18) { return 0; - } else if ( type == 1 && tvb_length(tvb) < 11 ) { + } else if ( type == 1 && tvb_captured_length(tvb) < 11 ) { return 0; - } else if ( type == 3 && tvb_length(tvb) < 19 ) { + } else if ( type == 3 && tvb_captured_length(tvb) < 19 ) { return 0; } @@ -219,7 +219,7 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ } } - return tvb_length(tvb); + return tvb_captured_length(tvb); } |