The stack result was not being set on forming
the payload. Also, the device payload was being set
into the incorrect variable.
Change-Id: I18875b9ba0bd9776f0914317617c3c5d66ed64f8
Signed-off-by: Omkar Hegde <omkar.m.hegde@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1681
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
{
discoveryResult = OC_STACK_NO_MEMORY;
}
+ else
+ {
+ discoveryResult = OC_STACK_OK;
+ }
}
else if (virtualUriInRequest == OC_PLATFORM_URI)
{
- OCPlatformPayload* payload = OCPlatformPayloadCreate(
+ payload = (OCPayload*)OCPlatformPayloadCreate(
OC_RSRVD_PLATFORM_URI,
&savedPlatformInfo);
if (!payload)
{
discoveryResult = OC_STACK_NO_MEMORY;
}
+ else
+ {
+ discoveryResult = OC_STACK_OK;
+ }
}
#ifdef WITH_PRESENCE