diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-16 10:58:59 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-16 10:58:59 -0700 |
commit | cc4d0199e7aa56d08e91dd9e21bbaba318afa8a4 (patch) | |
tree | 0758d7011120496f436cc71b862c76533bf780f0 /node | |
parent | 781f06ef82033cdf2488f80266b3f7a8497eba69 (diff) | |
download | infinitytier-cc4d0199e7aa56d08e91dd9e21bbaba318afa8a4.tar.gz infinitytier-cc4d0199e7aa56d08e91dd9e21bbaba318afa8a4.zip |
Fix vProto init.
Diffstat (limited to 'node')
-rw-r--r-- | node/Peer.cpp | 1 | ||||
-rw-r--r-- | node/Peer.hpp | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 76b1d537..fdc8dca7 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -55,6 +55,7 @@ Peer::Peer(const Identity &myIdentity,const Identity &peerIdentity) _lastDirectPathPushSent(0), _lastDirectPathPushReceived(0), _lastPathSort(0), + _vProto(0), _vMajor(0), _vMinor(0), _vRevision(0), diff --git a/node/Peer.hpp b/node/Peer.hpp index 7e7e7f46..0aca70b4 100644 --- a/node/Peer.hpp +++ b/node/Peer.hpp @@ -330,7 +330,6 @@ public: */ inline void setRemoteVersion(unsigned int vproto,unsigned int vmaj,unsigned int vmin,unsigned int vrev) { - Mutex::Lock _l(_lock); _vProto = (uint16_t)vproto; _vMajor = (uint16_t)vmaj; _vMinor = (uint16_t)vmin; |