removed unreachable code in coap http
authorjihwan.seo <jihwan.seo@samsung.com>
Tue, 13 Dec 2016 04:32:15 +0000 (13:32 +0900)
committerJungYong KIM <jyong2.kim@samsung.com>
Wed, 14 Dec 2016 08:19:27 +0000 (08:19 +0000)
Change-Id: I4ca17ced9d83d9624b948aefba60f01057652ae0
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15541
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
service/coap-http-proxy/src/CoapHttpHandler.c
service/coap-http-proxy/src/CoapHttpParser.c

index 8e719cd..8e033e0 100644 (file)
@@ -133,8 +133,8 @@ OCStackResult CHPTerminate()
 
     g_proxyHandle = NULL;
     g_isCHProxyInitialized = false;
-    return result;
     OIC_LOG_V(DEBUG, TAG, "%s OUT", __func__);
+    return result;
 }
 
 static void CHPGetProxyURI(OCHeaderOption* options, uint8_t *numOptions, char* uri,
index f9c5ee4..23f23c6 100644 (file)
@@ -781,7 +781,7 @@ static OCStackResult CHPInitializeEasyHandle(CURL** easyHandle, HttpRequest_t *r
             handleContext->payloadLength = req->payloadLength;
             handleContext->payload = req->payload;
             req->payloadCached = true;
-            break;;
+            break;
         case CHP_DELETE:
             OIC_LOG(DEBUG, TAG, "Sending DELETE request");
             /* libcurl don't have direct option for sending DELETE */