From b3073f44a2180b2a888ae8615d6112bbd82ef3da Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Thu, 21 Jul 2016 23:02:54 +0200 Subject: [PATCH] move sourceAddress out of scope sourceAddress is used in the catch block --- node/IncomingPacket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 231f0d062..37af8425e 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;