move sourceAddress out of scope

sourceAddress is used in the catch block
This commit is contained in:
Moritz Warning 2016-07-21 23:02:54 +02:00
parent bdc3b0834b
commit b3073f44a2

View File

@ -42,9 +42,9 @@ namespace ZeroTier {
bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR,bool deferred)
{
try {
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;