From 9284e4edfe8267f4f33ac563a17571fcf73833a0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 1 Feb 2017 15:22:14 -0800 Subject: agree() must be called on our identity, the one with the secret --- node/Cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Cluster.cpp') 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(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(); } -- cgit v1.2.3