UpdateResponseAddr() did not set success as result which caused the
stack to return quietly.
Set response type to OC_STACK_OK so stack can do the callback.
Change-Id: I3958c51f08735d2e7bf30bcefdfbb99255ea69bf
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/587
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
}
memcpy(&address->addr[4], &endPoint->addressInfo.IP.port, sizeof(uint16_t));
+ ret = OC_STACK_OK;
exit:
OCFree(cpAddress);
OCStackResult result = UpdateResponseAddr(&address, endPoint);
if(result != OC_STACK_OK)
{
+ OC_LOG(ERROR, TAG, PCF("Error parsing IP address in UpdateResponseAddr"));
return;
}