Commit 01f8ff65 authored by winckel's avatar winckel

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
parent c0ec1351
......@@ -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)
{
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);
ASN_SEQUENCE_ADD (&dedicatedInfoNASList->list, dedicatedInfoNas);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment