Commit 13857c67 authored by Robert Schmidt's avatar Robert Schmidt

fix segfault RRU: check for nb_inst >0 before node_type

parent 62d9b8cf
Pipeline #12421 failed with stage
in 0 seconds
......@@ -688,7 +688,8 @@ int main( int argc, char **argv ) {
RCconfig_L1();
}
if (RC.rrc[0]->node_type == ngran_eNB_CU || RC.rrc[0]->node_type == ngran_ng_eNB_CU) {
if (RC.nb_inst > 0
&& (RC.rrc[0]->node_type == ngran_eNB_CU || RC.rrc[0]->node_type == ngran_ng_eNB_CU)) {
protocol_ctxt_t ctxt;
ctxt.module_id = 0 ;
ctxt.instance = 0;
......
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