Skip to content

Commit

Permalink
Delete security object on bootstrap completion
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Pradeep <kiran.happy@gmail.com>
  • Loading branch information
kiranpradeep authored and sbernard31 committed Mar 15, 2016
1 parent de18a99 commit 1056533
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public synchronized BootstrapDeleteResponse delete(Identity identity, BootstrapD
// Delete all security instance (except bootstrap one)
// TODO do not delete boostrap server (see 5.2.5.2 Bootstrap Delete)
LwM2mObjectEnabler securityObject = objects.get(SECURITY);
for (Integer instanceId : serverObject.getAvailableInstanceIds()) {
securityObject.delete(identity, new DeleteRequest(SERVER, instanceId));
for (Integer instanceId : securityObject.getAvailableInstanceIds()) {
securityObject.delete(identity, new DeleteRequest(SECURITY, instanceId));
}

return BootstrapDeleteResponse.success();
Expand Down

0 comments on commit 1056533

Please sign in to comment.