From 82cd728edbcdd1d15a5bce431307ecc9eb52ff18 Mon Sep 17 00:00:00 2001
From: "islam.galal" <igalal.ext@orange.com>
Date: Wed, 16 Aug 2017 13:40:04 +0200
Subject: [PATCH] small changes

---
 openair2/ENB_APP/enb_config.c         | 2 +-
 openair2/RRC/LITE/MESSAGES/asn1_msg.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/openair2/ENB_APP/enb_config.c b/openair2/ENB_APP/enb_config.c
index b99aacbf234..23693f0958b 100755
--- a/openair2/ENB_APP/enb_config.c
+++ b/openair2/ENB_APP/enb_config.c
@@ -2786,7 +2786,7 @@ int RCconfig_RRC(MessageDef *msg_p, uint32_t i, eNB_RRC_INST *rrc) {
                   if (config_setting_lookup_int(prach_parameters_ce_r13, ENB_CONFIG_STRING_MAX_NUM_PREAMBLE_ATTEMPT_CE_R13, &maxNumPreambleAttemptCE_r13))
                   {
                     RRC_CONFIGURATION_REQ (msg_p).maxNumPreambleAttemptCE_r13[j][prach_parameters_index] = calloc(1, sizeof(long));
-                    RRC_CONFIGURATION_REQ (msg_p).maxNumPreambleAttemptCE_r13[j][prach_parameters_index] = maxNumPreambleAttemptCE_r13;
+                    *RRC_CONFIGURATION_REQ (msg_p).maxNumPreambleAttemptCE_r13[j][prach_parameters_index] = maxNumPreambleAttemptCE_r13;
                   }
                   else
                   {
diff --git a/openair2/RRC/LITE/MESSAGES/asn1_msg.c b/openair2/RRC/LITE/MESSAGES/asn1_msg.c
index 4e15cae695b..9a1e2dd600a 100755
--- a/openair2/RRC/LITE/MESSAGES/asn1_msg.c
+++ b/openair2/RRC/LITE/MESSAGES/asn1_msg.c
@@ -1412,6 +1412,7 @@ uint8_t do_SIB23(uint8_t Mod_id,
 
               if (configuration->prach_StartingSubframe_r13[CC_id][prach_parameters_index])
               {
+                  prach_parametersce_r13->prach_StartingSubframe_r13 = CALLOC(1, sizeof(long));
                   *prach_parametersce_r13->prach_StartingSubframe_r13 = *configuration->prach_StartingSubframe_r13[CC_id][prach_parameters_index];
               }
               else
@@ -1421,6 +1422,7 @@ uint8_t do_SIB23(uint8_t Mod_id,
 
               if (configuration->maxNumPreambleAttemptCE_r13[CC_id][prach_parameters_index])
               {
+                  prach_parametersce_r13->maxNumPreambleAttemptCE_r13 = CALLOC(1, sizeof(long));
                   *prach_parametersce_r13->maxNumPreambleAttemptCE_r13 = *configuration->maxNumPreambleAttemptCE_r13[CC_id][prach_parameters_index];
               }
               else
-- 
GitLab