projects
/
platform
/
core
/
security
/
suspicious-activity-monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae3fdb7
)
Filter report and policy server from list of owned devices.
author
Lomtev Dmytro
<d.lomtev@samsung.com>
Wed, 24 May 2017 06:10:07 +0000
(09:10 +0300)
committer
Lomtev Dmytro
<d.lomtev@samsung.com>
Wed, 24 May 2017 06:10:07 +0000
(09:10 +0300)
device_core/iotivity_lib/src/iotivity.cpp
patch
|
blob
|
history
diff --git
a/device_core/iotivity_lib/src/iotivity.cpp
b/device_core/iotivity_lib/src/iotivity.cpp
index
f90e676
..
dd4ff75
100644
(file)
--- a/
device_core/iotivity_lib/src/iotivity.cpp
+++ b/
device_core/iotivity_lib/src/iotivity.cpp
@@
-325,7
+325,12
@@
void devicePresenceHandle(Params* params, const HeaderOptions& hOptions, const O
if (it == params->owned.end())
{
std::shared_ptr<IoTDevice> dev(new IoTDevice_impl(params->accountMgr->host(), di, state == "on"));
- params->owned.emplace(di, dev);
+
+ // Filter report and policy server from list of owned devices
+ if (dev->getType() != "secserver")
+ {
+ params->owned.emplace(di, dev);
+ }
}
if ((bool)params->presence_hook)