diff options
Diffstat (limited to 'epan/dissectors/packet-disp.c')
-rw-r--r-- | epan/dissectors/packet-disp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-disp.c b/epan/dissectors/packet-disp.c index 884d5f729d..1e8e829faf 100644 --- a/epan/dissectors/packet-disp.c +++ b/epan/dissectors/packet-disp.c @@ -1570,7 +1570,7 @@ dissect_disp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d break; default: proto_tree_add_text(tree, tvb, offset, -1,"Unsupported DISP PDU"); - return tvb_length(tvb); + return tvb_captured_length(tvb); } if(disp_dissector) { @@ -1586,7 +1586,7 @@ dissect_disp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d } } - return tvb_length(tvb); + return tvb_captured_length(tvb); } |