From 8b85e3b4a58282db6abf7a60992140a97c75d9b6 Mon Sep 17 00:00:00 2001 From: "js126.lee" Date: Fri, 25 Mar 2016 13:53:32 +0900 Subject: [PATCH] Resolved Svace defect on Security folder -Patch 1: Resolve svase defect on security folder -Patch 2: Apply Mr.Kang's comment Change-Id: I4c020c4081121852de0c3623f53a177fd2b474c9 Signed-off-by: js126.lee Reviewed-on: https://gerrit.iotivity.org/gerrit/6319 Reviewed-by: Yonggoo Kang Reviewed-by: Dmitriy Zhuravlev Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh --- resource/csdk/security/provisioning/ck_manager/src/ckm_info.c | 1 + resource/csdk/security/provisioning/src/secureresourceprovider.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/csdk/security/provisioning/ck_manager/src/ckm_info.c b/resource/csdk/security/provisioning/ck_manager/src/ckm_info.c index bf528b6..ee03dfc 100644 --- a/resource/csdk/security/provisioning/ck_manager/src/ckm_info.c +++ b/resource/csdk/security/provisioning/ck_manager/src/ckm_info.c @@ -502,6 +502,7 @@ PKIError GetCertificateRevocationList (ByteArray *certificateRevocationList) CHECK_COND(g_crlInfo.CrlData.data, ISSUER_CA_STORAGE_CRL_UNDEFINED); CHECK_NULL_BYTE_ARRAY_PTR(certificateRevocationList, ISSUER_CA_STORAGE_NULL_PASSED); tmpCRL = (OicSecCrl_t *)GetCRLResource(); + CHECK_NULL(tmpCRL, ISSUER_CA_STORAGE_NULL_PASSED); g_crlInfo.CrlId = tmpCRL->CrlId; g_crlInfo.CrlData = tmpCRL->CrlData; g_crlInfo.ThisUpdate = tmpCRL->ThisUpdate; diff --git a/resource/csdk/security/provisioning/src/secureresourceprovider.c b/resource/csdk/security/provisioning/src/secureresourceprovider.c index 7fa4851..63e37d1 100644 --- a/resource/csdk/security/provisioning/src/secureresourceprovider.c +++ b/resource/csdk/security/provisioning/src/secureresourceprovider.c @@ -634,7 +634,6 @@ OCStackResult SRPProvisionCredentials(void *ctx, OicSecCredType_t type, size_t k { VERIFY_NON_NULL(TAG, pDev2, ERROR, OC_STACK_INVALID_PARAM); } - VERIFY_NON_NULL(TAG, resultCallback, ERROR, OC_STACK_INVALID_CALLBACK); if (!resultCallback) { OIC_LOG(INFO, TAG, "SRPUnlinkDevices : NULL Callback"); -- 2.7.4