aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2014-04-18 15:16:52 -0700
committerGregory Maxwell <greg@xiph.org>2014-04-18 15:16:52 -0700
commitfe451fe9441c9b23e4a13a1f00974e29f7a30462 (patch)
tree920b84767d1316e4f9bf364fd408266d22c8e74a /src/net.cpp
parent2f3308f2d2d46dd1f8f4a38a14e2cf1216b06afe (diff)
parent0bd05b53b155bc28b6e5dfd967cafaafb44a439f (diff)
Merge pull request #4037 from gmaxwell/fdleaks
Prevent socket leak in ThreadSocketHandler.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 657a39bcff..a0208c9605 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -946,11 +946,7 @@ void ThreadSocketHandler()
}
else if (nInbound >= nMaxConnections - MAX_OUTBOUND_CONNECTIONS)
{
- {
- LOCK(cs_setservAddNodeAddresses);
- if (!setservAddNodeAddresses.count(addr))
- closesocket(hSocket);
- }
+ closesocket(hSocket);
}
else if (CNode::IsBanned(addr))
{