Fixes in current code for Multi-UE support [Issue-ID: ODUHIGH-354]
[o-du/l2.git] / src / du_app / du_f1ap_msg_hdl.c
index 36a9c6c..67c382f 100644 (file)
@@ -10098,6 +10098,7 @@ uint8_t procF1UeContextSetupReq(F1AP_PDU_t *f1apMsg)
                         DU_LOG("\nERROR  -->  F1AP: Memory Alloc Failed at procF1UeContextSetupReq()");
                         ret = RFAILED;
                      }
+                     break;
                   }
                   else
                      ueCbFound = false;
@@ -12567,12 +12568,13 @@ uint8_t procF1UeContextModificationReq(F1AP_PDU_t *f1apMsg)
                               }
                            }
                         }
+                        break;
                      }
-                     else
-                     {
-                        DU_LOG("\nERROR  -->  DU APP : wrong values of gnbCuUeF1apId and gnbDuUeF1apId ");
-                        ret = RFAILED;
-                     }
+                  }
+                  if(ueIdx >= duCb.actvCellLst[cellIdx]->numActvUes)
+                  {
+                     DU_LOG("\nERROR  -->  DU APP : wrong values of gnbCuUeF1apId and gnbDuUeF1apId ");
+                     ret = RFAILED;
                   }
                }
                break;