diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-07-25 00:08:52 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-07-24 22:09:57 +0000 |
commit | 23ca45603568e1288c44bc69fd5bf55c290d275c (patch) | |
tree | 17cc5c3d9df334e22206d7c2cad52daf62bfa029 | |
parent | 7be155ee1ec61166bdf1a525902c05b378c75b66 (diff) |
MAC LTE: fix dump of last SDU
Change-Id: Ice39b71fab564cde0688c451bdf46c7e426475ce
Reviewed-on: https://code.wireshark.org/review/9782
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r-- | epan/dissectors/packet-mac-lte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c index 08c77ae4b2..4dcea64938 100644 --- a/epan/dissectors/packet-mac-lte.c +++ b/epan/dissectors/packet-mac-lte.c @@ -5011,7 +5011,7 @@ static void dissect_ulsch_or_dlsch(tvbuff_t *tvb, packet_info *pinfo, proto_tree } else { - proto_item_append_text(sdu_ti, "%s", tvb_bytes_to_str(wmem_packet_scope(), tvb, offset, pdu_lengths[n])); + proto_item_append_text(sdu_ti, "%s", tvb_bytes_to_str(wmem_packet_scope(), tvb, offset, data_length)); } } @@ -5436,7 +5436,7 @@ static void dissect_mch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pro } else { - proto_item_append_text(sdu_ti, "%s", tvb_bytes_to_str(wmem_packet_scope(), tvb, offset, pdu_lengths[n])); + proto_item_append_text(sdu_ti, "%s", tvb_bytes_to_str(wmem_packet_scope(), tvb, offset, data_length)); } } |