mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-30 09:48:54 +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)
|
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)
|
// Check for trusted paths or unencrypted HELLOs (HELLO is the only packet sent in the clear)
|
||||||
const unsigned int c = cipher();
|
const unsigned int c = cipher();
|
||||||
bool trusted = false;
|
bool trusted = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user