mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix crash inside OverlayImpl loops over ids_ (#5071)
This commit is contained in:
@@ -189,7 +189,10 @@ private:
|
||||
consumer,
|
||||
std::move(stream_ptr),
|
||||
overlay);
|
||||
BEAST_EXPECT(
|
||||
overlay.findPeerByPublicKey(key) == std::shared_ptr<PeerImp>{});
|
||||
overlay.add_active(peer);
|
||||
BEAST_EXPECT(overlay.findPeerByPublicKey(key) == peer);
|
||||
peers.emplace_back(peer); // overlay stores week ptr to PeerImp
|
||||
lid_ += 2;
|
||||
rid_ += 2;
|
||||
|
||||
Reference in New Issue
Block a user