summaryrefslogtreecommitdiff
path: root/node/Cluster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Cluster.cpp')
-rw-r--r--node/Cluster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Cluster.cpp b/node/Cluster.cpp
index 7cf6b08b..356a0887 100644
--- a/node/Cluster.cpp
+++ b/node/Cluster.cpp
@@ -347,7 +347,7 @@ void Cluster::handleIncomingStateMessage(const void *msg,unsigned int len)
_RemotePeer &rp = _remotePeers[std::pair<Address,unsigned int>(id.address(),(unsigned int)fromMemberId)];
if (!rp.lastHavePeerReceived) {
RR->topology->saveIdentity(id);
- id.agree(RR->identity,rp.key,ZT_PEER_SECRET_KEY_LENGTH);
+ RR->identity.agree(id,rp.key,ZT_PEER_SECRET_KEY_LENGTH);
}
rp.lastHavePeerReceived = RR->node->now();
}