Skip to content

Commit

Permalink
0000899: Prevent nodes from syncing with themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 8, 2012
1 parent da0c99f commit 04c281a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -313,7 +313,7 @@ public boolean isNodeAuthorized(String nodeId, String password) {
Map<String, NodeSecurity> nodeSecurities = findAllNodeSecurity(true);
NodeSecurity nodeSecurity = nodeSecurities.get(nodeId);
if (nodeSecurity != null
&& ((nodeSecurity.getNodePassword() != null
&& !nodeId.equals(findIdentityNodeId()) && ((nodeSecurity.getNodePassword() != null
&& !nodeSecurity.getNodePassword().equals("") && nodeSecurity
.getNodePassword().equals(password)) || nodeSecurity
.isRegistrationEnabled())) {
Expand Down

0 comments on commit 04c281a

Please sign in to comment.