From: Omkar Hegde Date: Tue, 14 Jul 2015 21:02:07 +0000 (-0700) Subject: Fix Discovery Payload X-Git-Tag: 0.9.2-beta~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99c5dcda298cc9fc735f8d83316815f9e869ae83;p=contrib%2Fiotivity.git 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: Omkar Hegde Reviewed-on: https://gerrit.iotivity.org/gerrit/1651 Reviewed-by: Erich Keane Tested-by: jenkins-iotivity --- diff --git a/resource/csdk/stack/src/ocpayload.c b/resource/csdk/stack/src/ocpayload.c index 69cab70..ce82edc 100644 --- a/resource/csdk/stack/src/ocpayload.c +++ b/resource/csdk/stack/src/ocpayload.c @@ -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; while(ifPtr) {