X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Flsctp.c;h=1641bc4be89208ae97f61acf57aeaf37dc5ebcd1;hb=5d74fef7c9fe6b65a965ceac6bfe812872dab323;hp=c28cc1d8478a742e4938a7f0c29e01aa56dc092e;hpb=aee73991f728cc127d1ed76d5a52571d916235a4;p=o-du%2Fl2.git diff --git a/src/cm/lsctp.c b/src/cm/lsctp.c index c28cc1d84..1641bc4be 100644 --- a/src/cm/lsctp.c +++ b/src/cm/lsctp.c @@ -41,7 +41,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy) { Buffer *mBuf; - if(ODU_GET_MSG(pst->region, pst->pool, &mBuf) != ROK) + if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK) { printf("\nSCTP : Failed to allocate memory"); return RFAILED; @@ -83,7 +83,7 @@ uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy) uint8_t cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf) { CmInetSctpNotification ntfy; - memset((uint8_t*)&ntfy, 0, sizeof(CmInetSctpNotification)); + memset(&ntfy, 0, sizeof(CmInetSctpNotification)); oduPackUInt16(&(ntfy.header.nType), mBuf); if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)