mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-26 05:49:59 +00:00
Return an explicit NULL shared pointer at the end of Topology::getPeer()
This commit is contained in:
parent
e564c56dce
commit
7cf70d111a
@ -135,7 +135,7 @@ SharedPtr<Peer> Topology::getPeer(void *tPtr,const Address &zta)
|
|||||||
ap = Peer::deserializeFromCache(RR->node->now(),tPtr,buf,RR);
|
ap = Peer::deserializeFromCache(RR->node->now(),tPtr,buf,RR);
|
||||||
if (!ap)
|
if (!ap)
|
||||||
_peers.erase(zta);
|
_peers.erase(zta);
|
||||||
return ap;
|
return SharedPtr<Peer>();
|
||||||
}
|
}
|
||||||
} catch ( ... ) {} // ignore invalid identities or other strage failures
|
} catch ( ... ) {} // ignore invalid identities or other strage failures
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user