Commit 99c5dcda authored by Omkar Hegde's avatar Omkar Hegde Committed by Erich Keane

Fix Discovery Payload

We were accidentally accessing the resource types
instead of interface name when doing discovery response.
The issue could be seen on running collection samples.

Change-Id: Iabd132e1a8b85b1c8f9890ae2db1a35983bee938
Signed-off-by: default avatarOmkar Hegde <>
Reviewed-on: default avatarErich Keane <>
Tested-by: default avatarjenkins-iotivity <>
parent 632666ef
......@@ -1170,7 +1170,7 @@ static OCResourcePayload* OCCopyResource(const OCResource* res, uint16_t port)
pl->interfaces = (OCStringLL*)OICCalloc(1, sizeof(OCStringLL));
pl->interfaces->value = OICStrdup(ifPtr->name);
OCStringLL* cur = pl->types;
OCStringLL* cur = pl->interfaces;
ifPtr = ifPtr->next;
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