Pārlūkot izejas kodu

Merge pull request #363 from mwarning/move-declaration-out-of-scope

move sourceAddress out of scope
Adam Ierymenko 9 gadi atpakaļ
vecāks
revīzija
3d25a2ea02
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      node/IncomingPacket.cpp

+ 2 - 2
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;