if (!cadata)
{
OIC_LOG(ERROR, TAG, "cadata memory allocation failed");
- return CA_STATUS_FAILED;
+ return CA_MEMORY_ALLOC_FAILED;
}
CAEndpoint_t* ep = CACloneEndpoint(endpoint);
{
OIC_LOG(ERROR, TAG, "endpoint clone failed");
OICFree(cadata);
- return CA_STATUS_FAILED;
+ return CA_MEMORY_ALLOC_FAILED;
}
cadata->remoteEndpoint = ep;