mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 05:53:09 +00:00
move sourceAddress out of scope
sourceAddress is used in the catch block
This commit is contained in:
parent
bdc3b0834b
commit
b3073f44a2
@ -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…
Reference in New Issue
Block a user