diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2016-07-21 15:15:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-21 15:15:27 -0700 |
commit | 3d25a2ea020a9534980444388d9c4742f98d43f3 (patch) | |
tree | 58cdfccd10b5ac764fc384346e39d5b218fc9186 /node | |
parent | bdc3b0834bb8abc621ee6dbc9a92769b57376bee (diff) | |
parent | b3073f44a2180b2a888ae8615d6112bbd82ef3da (diff) | |
download | infinitytier-3d25a2ea020a9534980444388d9c4742f98d43f3.tar.gz infinitytier-3d25a2ea020a9534980444388d9c4742f98d43f3.zip |
Merge pull request #363 from mwarning/move-declaration-out-of-scope
move sourceAddress out of scope
Diffstat (limited to 'node')
-rw-r--r-- | node/IncomingPacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 231f0d06..37af8425 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -42,9 +42,9 @@ namespace ZeroTier { bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR,bool deferred) { - try { - const Address sourceAddress(source()); + const Address sourceAddress(source()); + try { // Check for trusted paths or unencrypted HELLOs (HELLO is the only packet sent in the clear) const unsigned int c = cipher(); bool trusted = false; |