Cleared dedicatedInfoNas structure to avoid issues with buffer free calls in ASN_SEQUENCE_ADD.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4534 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -1032,7 +1032,7 @@ static void rrc_eNB_generate_defaultRRCConnectionReconfiguration (u8 Mod_id, u32
|
|||||||
{
|
{
|
||||||
if (UE_info->e_rab[i].param.nas_pdu.buffer != NULL)
|
if (UE_info->e_rab[i].param.nas_pdu.buffer != NULL)
|
||||||
{
|
{
|
||||||
dedicatedInfoNas = malloc (sizeof(DedicatedInfoNAS_t));
|
dedicatedInfoNas = CALLOC (1, sizeof(DedicatedInfoNAS_t));
|
||||||
|
|
||||||
OCTET_STRING_fromBuf (dedicatedInfoNas, (char *) UE_info->e_rab[i].param.nas_pdu.buffer, UE_info->e_rab[i].param.nas_pdu.length);
|
OCTET_STRING_fromBuf (dedicatedInfoNas, (char *) UE_info->e_rab[i].param.nas_pdu.buffer, UE_info->e_rab[i].param.nas_pdu.length);
|
||||||
ASN_SEQUENCE_ADD (&dedicatedInfoNASList->list, dedicatedInfoNas);
|
ASN_SEQUENCE_ADD (&dedicatedInfoNASList->list, dedicatedInfoNas);
|
||||||
|
|||||||
Reference in New Issue
Block a user