Commit 798566c3 authored by Dmitriy Zhuravlev's avatar Dmitriy Zhuravlev Committed by Uze Choi

[IOT-2036] Fix empty string device ID

Allow to load PSK suites in case of empty deviceId

Change-Id: Idaf55bb3624c2f1d1a1825b0cdcaaa1bdd7d5caf
Signed-off-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19867Reviewed-by: default avatarJihun Ha <jihun.ha@samsung.com>
Reviewed-by: default avatarSenthil Kumar G S <senthil.gs@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Tested-by: default avatarUze Choi <uzchoi@samsung.com>
parent d20f7c31
......@@ -3571,7 +3571,7 @@ void InitCipherSuiteListInternal(bool * list, const char * usage, const char *de
{
OicUuid_t uuid;
if (NULL == deviceId ||
if (NULL == deviceId || deviceId[0] == '\0' ||
OC_STACK_OK != ConvertStrToUuid(deviceId, &uuid) ||
0 == memcmp(uuid.id, temp->subject.id, sizeof(uuid.id)))
{
......
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