Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12045 from tupfold/master
[Minor Bugfix]  Extremely rare HostID collision bugfix
  • Loading branch information
AdmiralCurtiss committed Jul 24, 2023
2 parents 553824e + c4978ed commit 0a2afa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/TraversalServer.cpp
Expand Up @@ -312,9 +312,9 @@ static void HandlePacket(Common::TraversalPacket* packet, sockaddr_in6* addr)
Common::TraversalInetAddress* iaddr{};
// not that there is any significant change of
// duplication, but...
GetRandomHostId(&hostId);
while (true)
{
GetRandomHostId(&hostId);
auto r = EvictFind(connectedClients, hostId);
if (!r.found)
{
Expand Down

0 comments on commit 0a2afa4

Please sign in to comment.