Permalink
Browse files

Prevent socket leak in ThreadSocketHandler.

  • Loading branch information...
Tranz5 committed Jul 19, 2014
1 parent e14dc29 commit fbec842b44b50afbc012ed40389931d83a108071
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/net.cpp
View
@@ -830,11 +830,7 @@ void ThreadSocketHandler2(void* parg)
}
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS)
{
{
LOCK(cs_setservAddNodeAddresses);
if (!setservAddNodeAddresses.count(addr))
closesocket(hSocket);
}
closesocket(hSocket);
}
else if (CNode::IsBanned(addr))
{

0 comments on commit fbec842

Please sign in to comment.