diff options
Diffstat (limited to 'epan/dissectors/packet-j1939.c')
-rw-r--r-- | epan/dissectors/packet-j1939.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-j1939.c b/epan/dissectors/packet-j1939.c index d5375b83bb..3001a16973 100644 --- a/epan/dissectors/packet-j1939.c +++ b/epan/dissectors/packet-j1939.c @@ -255,7 +255,7 @@ static int dissect_j1939(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo proto_tree_add_item(msg_tree, hf_j1939_data, tvb, 0, -1, ENC_NA); } - return tvb_length(tvb); + return tvb_captured_length(tvb); } void proto_register_j1939(void) |