Return an explicit NULL shared pointer at the end of Topology::getPeer()

This commit is contained in:
Grant Limberg 2017-09-28 10:40:27 -07:00
parent e564c56dce
commit 7cf70d111a

View File

@ -135,7 +135,7 @@ SharedPtr<Peer> Topology::getPeer(void *tPtr,const Address &zta)
ap = Peer::deserializeFromCache(RR->node->now(),tPtr,buf,RR);
if (!ap)
_peers.erase(zta);
return ap;
return SharedPtr<Peer>();
}
} catch ( ... ) {} // ignore invalid identities or other strage failures