{
#if defined (ROUTING_GATEWAY) || defined (ROUTING_EP)
// Add route info in RM option.
- OCStackResult rmResult = RMAddInfo(object->routeData, &(responseInfo->info.options),
- &(responseInfo->info.numOptions));
+ OCStackResult rmResult = RMAddInfo(object->routeData, responseInfo, false, NULL);
if(OC_STACK_OK != rmResult)
{
OIC_LOG(ERROR, TAG, "Add option failed");
if(!ehResponse || !ehResponse->requestHandle)
{
- OC_LOG(ERROR, TAG, "ehResponse/requestHandle is NULL");
+ OIC_LOG(ERROR, TAG, "ehResponse/requestHandle is NULL");
return OC_STACK_ERROR;
}