E2AP review changes part1
[o-du/l2.git] / src / du_app / du_f1ap_msg_hdl.c
index a91f059..713db1c 100644 (file)
@@ -850,7 +850,7 @@ S16 BuildServedCellList(GNB_DU_Served_Cells_List_t *duServedCell)
        }
        /* MIB */
        srvCellItem->gNB_DU_System_Information->mIB_message.size =\
-             strlen(duCfgParam.srvdCellLst[0].duSysInfo.mibMsg) + 1;
+             strlen(duCfgParam.srvdCellLst[0].duSysInfo.mibMsg);
        DU_ALLOC(srvCellItem->gNB_DU_System_Information->mIB_message.buf,
              srvCellItem->gNB_DU_System_Information->mIB_message.size);
    if(!srvCellItem->gNB_DU_System_Information->mIB_message.buf)
@@ -994,7 +994,7 @@ S16 SendF1APMsg(Region region, Pool pool)
       {
          SPrntMsg(mBuf, 0,0);
  
-         if(sctpSend(mBuf) != ROK)
+         if(sctpSend(mBuf, F1_INTERFACE) != ROK)
          {
             DU_LOG("\nF1AP : SCTP Send failed");
             SPutMsg(mBuf);