Commit f84babec authored by js126.lee's avatar js126.lee Committed by Randeep

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: default avatarjs126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8873Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
parent 6768322b
......@@ -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))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment