summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2016-01-31 11:25:53 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2016-01-31 10:27:33 +0000
commit27ff4ac18dea8372f0a2088ef4229a1d07c6541a (patch)
tree88d61279f30ba9e3ce250287cab343f38d3ab658
parent3ce0e60b43770543bc5bdd4c9fdf5c1d2f6e134e (diff)
downloadwireshark-27ff4ac18dea8372f0a2088ef4229a1d07c6541a.tar.gz
RLC LTE: fix dissection of RLC AM PDUs with odd number of 15 bits LI
There is no padding in that case Change-Id: Ib0ce37c4fea76435b4cedfbd7d3d72420e4860eb Reviewed-on: https://code.wireshark.org/review/13618 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--epan/dissectors/packet-rlc-lte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rlc-lte.c b/epan/dissectors/packet-rlc-lte.c
index d0969b8122..7a06d69832 100644
--- a/epan/dissectors/packet-rlc-lte.c
+++ b/epan/dissectors/packet-rlc-lte.c
@@ -745,7 +745,7 @@ static int dissect_rlc_lte_extension_header(tvbuff_t *tvb, packet_info *pinfo _U
/* May need to skip padding after last extension part */
isOdd = (s_number_of_extensions % 2);
- if (isOdd) {
+ if (isOdd && (p_rlc_lte_info->extendedLiField == FALSE)) {
proto_tree_add_item(tree, hf_rlc_lte_extension_padding,
tvb, offset++, 1, ENC_BIG_ENDIAN);
}