aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-19 13:31:33 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-19 13:31:33 +0200
commit62909f68a087e85475b7fbad6d9a3a8873d0c811 (patch)
treedfbac34fcaaaabaf1cad94a08fa48c4f22343c84 /src/net.cpp
parent40400d53d3a0f5a11907fba610adabbe0975c9db (diff)
fix missing lock in CNode::ClearBanned()
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 6b8a0a2b1e..0511256e55 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -448,6 +448,7 @@ CCriticalSection CNode::cs_setBanned;
void CNode::ClearBanned()
{
+ LOCK(cs_setBanned);
setBanned.clear();
}