projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RC3 svace fix (cloudClient + crlresource.c)
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
security
/
provisioning
/
sample
/
cloud
/
cloudCommon.c
diff --git
a/resource/csdk/security/provisioning/sample/cloud/cloudCommon.c
b/resource/csdk/security/provisioning/sample/cloud/cloudCommon.c
index
ec30045
..
e1dcc80
100644
(file)
--- a/
resource/csdk/security/provisioning/sample/cloud/cloudCommon.c
+++ b/
resource/csdk/security/provisioning/sample/cloud/cloudCommon.c
@@
-340,12
+340,15
@@
static OCStackResult saveTrustCert(void)
res = OCSaveTrustCertChain(trustCertChainArray.data, trustCertChainArray.len, OIC_ENCODING_PEM,&g_credId);
res = OCSaveTrustCertChain(trustCertChainArray.data, trustCertChainArray.len, OIC_ENCODING_PEM,&g_credId);
- if(OC_STACK_OK != res)
+ if
(OC_STACK_OK != res)
{
{
- OIC_LOG(ERROR, TAG, "OCSaveTrustCertChainBin API error");
- return res;
+ OIC_LOG(ERROR, TAG, "OCSaveTrustCertChain API error");
+ }
+ else
+ {
+ OIC_LOG_V(INFO, TAG, "CredId of Saved Trust Cert. Chain into Cred of SVR : %d.\n", g_credId);
}
}
- OIC
_LOG_V(INFO, TAG, "CredId of Saved Trust Cert. Chain into Cred of SVR : %d.\n", g_credId
);
+ OIC
Free(trustCertChainArray.data
);
return res;
}
return res;
}