Browse Source

move sourceAddress out of scope

sourceAddress is used in the catch block
pull/1/head
Moritz Warning 10 years ago
parent
commit
b3073f44a2
  1. 4
      node/IncomingPacket.cpp

4
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;

Loading…
Cancel
Save