message->remoteEndpoint->addr,
0);
+ if (!remoteEndpoint)
+ {
+ OIC_LOG(ERROR, EDR_ADAPTER_TAG, "remoteEndpoint is NULL");
+ return;
+ }
+
OIC_LOG(DEBUG, EDR_ADAPTER_TAG, "Sending data up !");
const CASecureEndpoint_t sep = { .endpoint = *remoteEndpoint };
return res;
}
}
+ else
+ {
+ OIC_LOG(ERROR, TAG, "Invalid Block Option");
+ CADestroyBlockID(blockDataID);
+ return CA_STATUS_FAILED;
+ }
}
else
{
token = data->sentData->responseInfo->info.token;
}
+ if (!data->sentData->remoteEndpoint)
+ {
+ OIC_LOG(ERROR, TAG, "remoteEndpoint is null");
+ CADestroyDataSet(data->sentData);
+ OICFree(data);
+ return NULL;
+ }
+
CABlockDataID_t* blockDataID = CACreateBlockDatablockId(
token, tokenLength,
data->sentData->remoteEndpoint->port);