Browse Source

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

Grant Limberg 7 years ago
parent
commit
7cf70d111a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/Topology.cpp

+ 1 - 1
node/Topology.cpp

@@ -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