X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcu_stub%2Fcu_stub_sctp.c;h=39874f69ed81437effdeb6026abdb447fe55456c;hb=287632f09119435e0bf1ea16e4e11fc6447c1eee;hp=452e318641da677e603b972b473fe33d2529294f;hpb=834004e09017b5b86cb738be98a7a1be79c0a9b0;p=o-du%2Fl2.git diff --git a/src/cu_stub/cu_stub_sctp.c b/src/cu_stub/cu_stub_sctp.c index 452e31864..39874f69e 100644 --- a/src/cu_stub/cu_stub_sctp.c +++ b/src/cu_stub/cu_stub_sctp.c @@ -525,10 +525,11 @@ S16 processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, uint32_t *t * ****************************************************************/ S16 sctpSend(Buffer *mBuf) { - uint8_t ret; - MsgLen len; /* number of actually sent octets */ + uint8_t ret = ROK; + MsgLen len = 0; /* number of actually sent octets */ CmInetMemInfo memInfo; - + + memset(&memInfo , 0, sizeof(CmInetMemInfo)); memInfo.region = CU_APP_MEM_REG; memInfo.pool = CU_POOL;