projects
/
platform
/
upstream
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9268406
)
Revert "Add empty string check of uuid"
41/217941/1
author
Aleksey Volkov
<a.volkov@samsung.com>
Wed, 6 Nov 2019 09:32:55 +0000
(11:32 +0200)
committer
Sudipto Bal
<sudipto.bal@samsung.com>
Mon, 18 Nov 2019 02:19:59 +0000
(11:19 +0900)
This reverts commit
ca00c37c2f8583fb754d03ca37c716d7c1cd1401
.
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/597/commits/
061901767e9f842a83fb304a0a7d3d79ffc738af
(cherry-picked from
061901767e9f842a83fb304a0a7d3d79ffc738af
)
Change-Id: I7cb645a5a42df6cf36a77b5ea2f65dda2fc77f1f
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
resource/csdk/security/src/policyengine.c
patch
|
blob
|
history
diff --git
a/resource/csdk/security/src/policyengine.c
b/resource/csdk/security/src/policyengine.c
index
5f50c3e
..
649ba6e
100644
(file)
--- a/
resource/csdk/security/src/policyengine.c
+++ b/
resource/csdk/security/src/policyengine.c
@@
-79,12
+79,7
@@
static bool UuidCmp(OicUuid_t *firstId, OicUuid_t *secondId)
OIC_LOG_V(ERROR, TAG, "%s - %s is NULL",__func__, firstId ? "secondId" : "firstId");
return false;
}
- // Check empty uuid string
- if('\0' == firstId->id[0] || '\0' == secondId->id[0])
- {
- OIC_LOG_V(ERROR, TAG, "%s - %s is empty",__func__, '\0' == firstId->id[0] ? "firstId" : "secondId");
- return false;
- }
+
for(int i = 0; i < UUID_LENGTH; i++)
{
if(firstId->id[i] != secondId->id[i])