summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/NetworkController.cpp')
-rw-r--r--server/NetworkController.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp
index 8ae03242..7c2a8266 100644
--- a/server/NetworkController.cpp
+++ b/server/NetworkController.cpp
@@ -459,7 +459,7 @@ int NetworkController::addUsersToNetwork(unsigned netId, const UidRanges& uidRan
ALOGE("cannot add users to non-virtual network with netId %u", netId);
return -EINVAL;
}
- if (int ret = static_cast<VirtualNetwork*>(network)->addUsers(uidRanges)) {
+ if (int ret = static_cast<VirtualNetwork*>(network)->addUsers(uidRanges, mProtectableUsers)) {
return ret;
}
return 0;
@@ -476,7 +476,8 @@ int NetworkController::removeUsersFromNetwork(unsigned netId, const UidRanges& u
ALOGE("cannot remove users from non-virtual network with netId %u", netId);
return -EINVAL;
}
- if (int ret = static_cast<VirtualNetwork*>(network)->removeUsers(uidRanges)) {
+ if (int ret = static_cast<VirtualNetwork*>(network)->removeUsers(uidRanges,
+ mProtectableUsers)) {
return ret;
}
return 0;