Commit 9b5f6dfb authored by ol.beketov's avatar ol.beketov Committed by Dmitriy Zhuravlev

Fix return value in GetDtlsPskCredentials()

Fix return value in GetDtlsPskCredentials() from
credresource.c missed in patchset #19785

Change-Id: Id79111409f574ce49f037adb6602a4195666db0c
Signed-off-by: default avatarol.beketov <ol.beketov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20137Reviewed-by: default avatarAndrii Shtompel <a.shtompel@samsung.com>
Reviewed-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: default avatarDan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
parent f300165d
......@@ -2795,6 +2795,7 @@ int32_t GetDtlsPskCredentials(CADtlsPskCredType_t type,
return ret;
}
memcpy(result, cred->privateData.data, len);
ret = (int32_t)len;
}
}
else if(OIC_ENCODING_BASE64 == cred->privateData.encoding)
......
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