From 876d9eac5214e3ad954d3ac075f64bced0785f5a Mon Sep 17 00:00:00 2001 From: Xenofon Foukas Date: Tue, 19 Jan 2016 10:12:48 +0000 Subject: [PATCH] Fixed bug when creating cell report stats reply --- openair2/ENB_APP/enb_agent_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/ENB_APP/enb_agent_mac.c b/openair2/ENB_APP/enb_agent_mac.c index 194d8c96b8..d13f7fa63a 100644 --- a/openair2/ENB_APP/enb_agent_mac.c +++ b/openair2/ENB_APP/enb_agent_mac.c @@ -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;