[IOT-1818] Fix SetResult() usage in OwnerCredentialHandler()
authorAndrii Shtompel <a.shtompel@samsung.com>
Wed, 17 May 2017 10:17:33 +0000 (13:17 +0300)
committerDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Thu, 18 May 2017 15:49:09 +0000 (15:49 +0000)
Change-Id: Ia8a0535164e73fcc8e53ca9755717af701759e8c
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19977
Reviewed-by: Oleksii Beketov <ol.beketov@samsung.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
resource/csdk/security/provisioning/src/ownershiptransfermanager.c

index c2bf433..ce2ce65 100644 (file)
@@ -1204,7 +1204,7 @@ static OCStackApplicationResult OwnerCredentialHandler(void *ctx, OCDoHandle UNU
             if(CA_STATUS_OK != caResult)
             {
                 OIC_LOG(ERROR, TAG, "Failed to select TLS_NULL_WITH_NULL_NULL");
-                SetResult(otmCtx, caResult);
+                SetResult(otmCtx, CAResultToOCResult(caResult));
                 return OC_STACK_DELETE_TRANSACTION;
             }