setting received ttl value by consumer.
authornikhil.a <nikhil.a7@samsung.com>
Tue, 18 Oct 2016 11:05:49 +0000 (16:35 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 19 Oct 2016 05:33:18 +0000 (05:33 +0000)
Change-Id: I1de504edf851d39d761dfa2a189a77116fca8a85
Signed-off-by: nikhil.a <nikhil.a7@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13387
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit f25946d028fa420573093f03fcbb2aa94eecfcf8)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13409
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
service/notification/src/consumer/NSConsumerCommon.c

index 7d32bd4..a790c4b 100644 (file)
@@ -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)