diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-01 15:22:14 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-01 15:22:14 -0800 |
| commit | 9284e4edfe8267f4f33ac563a17571fcf73833a0 (patch) | |
| tree | 99872ee79eba2f2cc7a404135ffef9dbcf6855e3 /node/Cluster.cpp | |
| parent | 62a705af1c88dd3b6cd40d1d3b1ce5e602a5ad31 (diff) | |
| download | infinitytier-9284e4edfe8267f4f33ac563a17571fcf73833a0.tar.gz infinitytier-9284e4edfe8267f4f33ac563a17571fcf73833a0.zip | |
agree() must be called on our identity, the one with the secret
Diffstat (limited to 'node/Cluster.cpp')
| -rw-r--r-- | node/Cluster.cpp | 2 |
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(); } |
