Commit b3e9eb05 authored by Habib Virji's avatar Habib Virji Committed by Ashok Babu Channa

Fix Device and Payload response

Bug fix due to change introduced in

Change-Id: Ib6b03f4296c8ef0fb1ac7ac79ff1023856a070bc
Signed-off-by: default avatarHabib Virji <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarDan Mihai <>
Reviewed-by: default avatarSoemin Tjong <>
Reviewed-by: Larry Sachs's avatarLarry Sachs <>
Reviewed-by: default avatarUze Choi <>
Reviewed-by: default avatarAshok Babu Channa <>
parent 180df296
......@@ -865,6 +865,7 @@ static OCStackResult HandleVirtualResource (OCServerRequest *request, OCResource
payload = (OCPayload*) OCDevicePayloadCreate(deviceId, savedDeviceInfo.deviceName,
savedDeviceInfo.types, savedDeviceInfo.specVersion, dataModelVersions);
VERIFY_PARAM_NON_NULL(TAG, payload, "Failed adding device payload.");
discoveryResult = OC_STACK_OK;
else if (virtualUriInRequest == OC_PLATFORM_URI)
......@@ -880,6 +881,7 @@ static OCStackResult HandleVirtualResource (OCServerRequest *request, OCResource
discoveryResult = OC_STACK_NO_MEMORY;
payload = (OCPayload *)OCPlatformPayloadCreate(&savedPlatformInfo);
VERIFY_PARAM_NON_NULL(TAG, payload, "Failed adding platform payload.");
discoveryResult = OC_STACK_OK;
else if (OC_GATEWAY_URI == virtualUriInRequest)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment