From: nikhil.a Date: Tue, 18 Oct 2016 11:05:49 +0000 (+0530) Subject: setting received ttl value by consumer. X-Git-Tag: 1.2.0~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0ef8a0e36ab52a9c1ab09ac757787e6fcd410ae;p=platform%2Fupstream%2Fiotivity.git setting received ttl value by consumer. Change-Id: I1de504edf851d39d761dfa2a189a77116fca8a85 Signed-off-by: nikhil.a Reviewed-on: https://gerrit.iotivity.org/gerrit/13387 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi (cherry picked from commit f25946d028fa420573093f03fcbb2aa94eecfcf8) Reviewed-on: https://gerrit.iotivity.org/gerrit/13409 Reviewed-by: Phil Coval --- diff --git a/service/notification/src/consumer/NSConsumerCommon.c b/service/notification/src/consumer/NSConsumerCommon.c index 7d32bd4..a790c4b 100644 --- a/service/notification/src/consumer/NSConsumerCommon.c +++ b/service/notification/src/consumer/NSConsumerCommon.c @@ -264,6 +264,7 @@ NSMessage * NSCopyMessage(NSMessage * msg) newMsg->sourceName = OICStrdup(msg->sourceName); newMsg->dateTime = OICStrdup(msg->dateTime); newMsg->type = msg->type; + newMsg->ttl= msg->ttl; newMsg->topic = NULL; if (msg->topic && strlen(msg->topic) > 0)