diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-10 17:34:41 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-03-10 17:34:41 -0800 |
| commit | 0c00b8370207c51fbc9c9901cfa0daccc9707295 (patch) | |
| tree | 63f0a27add95295a7e682fb82831ea4a311cd399 /node/IncomingPacket.cpp | |
| parent | 7320e26730dde2463ba3f44596483945522b9c1b (diff) | |
| download | infinitytier-0c00b8370207c51fbc9c9901cfa0daccc9707295.tar.gz infinitytier-0c00b8370207c51fbc9c9901cfa0daccc9707295.zip | |
cryptField() used to obscure extended fields in HELLO cannot use mangleKey()
Diffstat (limited to 'node/IncomingPacket.cpp')
| -rw-r--r-- | node/IncomingPacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 856538b4..f3ec7505 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -320,7 +320,7 @@ bool IncomingPacket::_doHELLO(const RuntimeEnvironment *RR,const bool alreadyAut // Get moon IDs and timestamps if present if ((ptr + 2) <= size()) { - unsigned int numMoons = at<uint16_t>(ptr); ptr += 2; + const unsigned int numMoons = at<uint16_t>(ptr); ptr += 2; for(unsigned int i=0;i<numMoons;++i) { if ((World::Type)(*this)[ptr++] == World::TYPE_MOON) moonIdsAndTimestamps.push_back(std::pair<uint64_t,uint64_t>(at<uint64_t>(ptr),at<uint64_t>(ptr + 8))); |
