mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Merge pull request #363 from mwarning/move-declaration-out-of-scope
move sourceAddress out of scope
This commit is contained in:
commit
3d25a2ea02
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue