aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/nbap/nbap.cnf
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2014-02-05 14:29:57 +0100
committerAnders Broman <a.broman58@gmail.com>2014-02-05 16:03:54 +0000
commit5236d89e2627946fc9a2044d98574b3c54c3d0d6 (patch)
tree5989de31cdb4140ea8034f178562d4764da78c9e /asn1/nbap/nbap.cnf
parent2c3f02231493b45022adc6b43cd680474486e80e (diff)
Dissector assert in packet-nbap.c. num_items isn't reset before calling a sequence filling the array.
Closed-bug #9726 Change-Id: Ie4bc538b0788eb32895c9eedf8e0277c6d9ed1b2 Reviewed-on: https://code.wireshark.org/review/120 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com> Tested-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1/nbap/nbap.cnf')
-rw-r--r--asn1/nbap/nbap.cnf5
1 files changed, 5 insertions, 0 deletions
diff --git a/asn1/nbap/nbap.cnf b/asn1/nbap/nbap.cnf
index 16e021c611..47a2e5981b 100644
--- a/asn1/nbap/nbap.cnf
+++ b/asn1/nbap/nbap.cnf
@@ -1680,6 +1680,11 @@ nbap_edch_channel_info[e_dch_macdflow_id].no_ddi_entries = num_items;
break;
}
+
+# Reset num_items before calling the sequence
+#.FN_HDR HSDSCH-MACdFlows-to-Delete
+ num_items = 0;
+
# Make sure num_items isn't 0 when accessing HSDSCH-MACdFlow-ID
#
#.FN_HDR HSDSCH-MACdFlows-to-Delete-Item