Commit 876d9eac authored by Xenofon Foukas's avatar Xenofon Foukas

Fixed bug when creating cell report stats reply

parent 5cec2972
...@@ -595,7 +595,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id, ...@@ -595,7 +595,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
// Fill in the Cell reports // Fill in the Cell reports
for (i = 0; i < report_config->nr_cc; i++) { for (i = 0; i < report_config->nr_cc; i++) {
cell_report[i] = malloc(sizeof(Protocol__PrpCellStatsReport)); cell_report[i] = malloc(sizeof(Protocol__PrpCellStatsReport));
if(ue_report[i] == NULL) if(cell_report[i] == NULL)
goto error; goto error;
protocol__prp_cell_stats_report__init(cell_report[i]); protocol__prp_cell_stats_report__init(cell_report[i]);
cell_report[i]->carrier_index = report_config->cc_report_type[i].cc_id; cell_report[i]->carrier_index = report_config->cc_report_type[i].cc_id;
......
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