From daa161404a65a59a5a3decd352ac069d5f5414d3 Mon Sep 17 00:00:00 2001 From: "ch79.cho" Date: Wed, 8 Mar 2017 16:22:30 +0900 Subject: [PATCH] [IOT-1903] Change to set single adapter flag for cloud notification Fixed to set sindle adapter flag such as OC_ADAPTER_IP and OC_ADAPTER_TCP during address parsing because multiple set of adapters caused an error from base layer to handle it. Change-Id: I7754d9d305d8c29f8d775d802164f5ccd761614b Signed-off-by: ch79.cho Reviewed-on: https://gerrit.iotivity.org/gerrit/17761 Tested-by: jenkins-iotivity Reviewed-by: JungYong KIM Reviewed-by: Uze Choi --- service/notification/src/common/NSUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/notification/src/common/NSUtil.c b/service/notification/src/common/NSUtil.c index c3dafff..2fbc027 100755 --- a/service/notification/src/common/NSUtil.c +++ b/service/notification/src/common/NSUtil.c @@ -502,7 +502,7 @@ OCDevAddr * NSChangeAddress(const char * inputaddress) if (strstr(inputaddress, "coap+tcp://")) { NS_LOG(DEBUG, "address : TCP"); - adapter |= OC_ADAPTER_TCP; + adapter = OC_ADAPTER_TCP; } else if (strstr(inputaddress, "coaps://")) { @@ -513,7 +513,7 @@ OCDevAddr * NSChangeAddress(const char * inputaddress) { NS_LOG(DEBUG, "address : TCP + SECURED"); flags |= OC_FLAG_SECURE; - adapter |= OC_ADAPTER_TCP; + adapter = OC_ADAPTER_TCP; } else if (strstr(inputaddress, "coap://")) { -- 2.7.4