From f84babec1adc66512e9deb6bf626326608a864ff Mon Sep 17 00:00:00 2001 From: "js126.lee" Date: Wed, 22 Jun 2016 20:53:10 +0900 Subject: [PATCH] Remove double checking type in credential data Remove double checking type in credential data Patch 1,2: Remove double checking type in credential data Change-Id: Ibb532700dff39e1f4ef261de7dda15a48e782d61 Signed-off-by: js126.lee Reviewed-on: https://gerrit.iotivity.org/gerrit/8873 Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh --- resource/csdk/security/src/credresource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/csdk/security/src/credresource.c b/resource/csdk/security/src/credresource.c index 69bb539..405a243 100644 --- a/resource/csdk/security/src/credresource.c +++ b/resource/csdk/security/src/credresource.c @@ -500,7 +500,7 @@ OCStackResult CBORPayloadToCred(const uint8_t *cborPayload, size_t size, if (privname) { // PrivateData::privdata -- Mandatory - if (strcmp(privname, OIC_JSON_DATA_NAME) == 0 && cbor_value_is_byte_string(&privateMap)) + if (strcmp(privname, OIC_JSON_DATA_NAME) == 0) { if(cbor_value_is_byte_string(&privateMap)) { -- 2.7.4