diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-05-19 15:21:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-05-19 15:21:33 +0000 |
commit | a68080a1c6aaf6945d908086d2848753dc500971 (patch) | |
tree | e3d24bd3a32cc55562ec7748fdd353ea8b93d4d7 /asn1 | |
parent | c2a54d11d090e54abbb5adc2be5fd3a878c72417 (diff) |
Don't access nbap_dch_chnl_info if the index is > maxNrOfDCHs
svn path=/trunk/; revision=49418
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/nbap/nbap.cnf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/asn1/nbap/nbap.cnf b/asn1/nbap/nbap.cnf index 9ef0e9f1d2..5c39adb551 100644 --- a/asn1/nbap/nbap.cnf +++ b/asn1/nbap/nbap.cnf @@ -687,11 +687,13 @@ guint32 payload_crc_value; #.FN_BODY CommonPhysicalChannelID VAL_PTR = &commonphysicalchannelid %(DEFAULT_BODY)s -nbap_dch_chnl_info[commonphysicalchannelid].next_dch = 0; +if(commonphysicalchannelid<maxNrOfDCHs) + nbap_dch_chnl_info[commonphysicalchannelid].next_dch = 0; #.FN_BODY CommonTransportChannelID VAL_PTR = &commontransportchannelid %(DEFAULT_BODY)s -nbap_dch_chnl_info[commontransportchannelid].next_dch = 0; +if(commontransportchannelid<maxNrOfDCHs) + nbap_dch_chnl_info[commontransportchannelid].next_dch = 0; #.FN_BODY E-DCH-MACdFlow-ID VAL_PTR = &e_dch_macdflow_id |