Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[ JIRA Id - ODUHIGH-606 ] Fixing null memory size allocation issue
[o-du/l2.git]
/
src
/
cm
/
lsctp.c
diff --git
a/src/cm/lsctp.c
b/src/cm/lsctp.c
index
1641bc4
..
3d7895e
100644
(file)
--- a/
src/cm/lsctp.c
+++ b/
src/cm/lsctp.c
@@
-43,20
+43,20
@@
uint8_t cmPkSctpNtfy(Pst *pst, CmInetSctpNotification *ntfy)
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
{
-
printf("\n
SCTP : Failed to allocate memory");
+
DU_LOG("\nERROR -->
SCTP : Failed to allocate memory");
return RFAILED;
}
if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
return RFAILED;
}
if(ntfy->header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
- odu
Unp
ackUInt16(ntfy->u.assocChange.state, mBuf);
- odu
Unp
ackUInt32(ntfy->u.assocChange.assocId, mBuf);
+ odu
P
ackUInt16(ntfy->u.assocChange.state, mBuf);
+ odu
P
ackUInt32(ntfy->u.assocChange.assocId, mBuf);
}
}
- odu
Unp
ackUInt16(ntfy->header.nType, mBuf);
+ odu
P
ackUInt16(ntfy->header.nType, mBuf);
if (ODU_POST_TASK(pst, mBuf) != ROK)
{
if (ODU_POST_TASK(pst, mBuf) != ROK)
{
-
printf("\n
SCTP : ODU_POST_TASK failed while sending SCTP notification");
+
DU_LOG("\nERROR -->
SCTP : ODU_POST_TASK failed while sending SCTP notification");
return RFAILED;
}
return RFAILED;
}
@@
-85,11
+85,11
@@
uint8_t cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf)
CmInetSctpNotification ntfy;
memset(&ntfy, 0, sizeof(CmInetSctpNotification));
CmInetSctpNotification ntfy;
memset(&ntfy, 0, sizeof(CmInetSctpNotification));
- odu
P
ackUInt16(&(ntfy.header.nType), mBuf);
+ odu
Unp
ackUInt16(&(ntfy.header.nType), mBuf);
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
if(ntfy.header.nType == CM_INET_SCTP_ASSOC_CHANGE)
{
- odu
P
ackUInt32(&(ntfy.u.assocChange.assocId), mBuf);
- odu
P
ackUInt16(&(ntfy.u.assocChange.state), mBuf);
+ odu
Unp
ackUInt32(&(ntfy.u.assocChange.assocId), mBuf);
+ odu
Unp
ackUInt16(&(ntfy.u.assocChange.state), mBuf);
}
return ((*func)(mBuf, &ntfy));
}
return ((*func)(mBuf, &ntfy));