aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dvbci.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-08-01 12:32:21 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2014-08-02 15:50:07 +0000
commitb5f4cb5c33a0592f8debfe24311f0fccbd167e97 (patch)
treeaebb220eef101b0b3b76a9a95563d1436c6b5c68 /epan/dissectors/packet-dvbci.c
parentfde0dbe6605188b040256c774e3fa79f7e98f432 (diff)
fix multi-byte entries in Operator Profile capability loops
(this problem showed up in an APDU with two 16bit application ids) Change-Id: Ie4842181b19db984a693534144fac5e91b217b34 Reviewed-on: https://code.wireshark.org/review/3358 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-dvbci.c')
-rw-r--r--epan/dissectors/packet-dvbci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dvbci.c b/epan/dissectors/packet-dvbci.c
index 1c2bc42c48..a8556b340e 100644
--- a/epan/dissectors/packet-dvbci.c
+++ b/epan/dissectors/packet-dvbci.c
@@ -1765,7 +1765,7 @@ dissect_opp_cap_loop(guint8 cap_loop_len, const gchar *title,
if (tree && cap_loop_len>0) {
loop_tree = proto_tree_add_subtree(tree, tvb, offset, cap_loop_len, ett_dvbci_opp_cap_loop, NULL, title);
}
- for (i=0; i<cap_loop_len; i+=item_len) {
+ for (i=0; i<item_len*cap_loop_len; i+=item_len) {
proto_tree_add_item(loop_tree, item_hf,
tvb, offset+i, item_len, ENC_BIG_ENDIAN);
}