Fixed bug when creating cell report stats reply

This commit is contained in:
Xenofon Foukas
2016-01-19 10:12:48 +00:00
parent 5cec297209
commit 876d9eac52
+1 -1
View File
@@ -595,7 +595,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
// Fill in the Cell reports
for (i = 0; i < report_config->nr_cc; i++) {
cell_report[i] = malloc(sizeof(Protocol__PrpCellStatsReport));
if(ue_report[i] == NULL)
if(cell_report[i] == NULL)
goto error;
protocol__prp_cell_stats_report__init(cell_report[i]);
cell_report[i]->carrier_index = report_config->cc_report_type[i].cc_id;