Browse Source

addrman: Add missing lock in Clear() (CAddrMan)

The variable vRandom is guarded by the mutex cs.
0.16
practicalswift 7 years ago
parent
commit
3ab545d7f8
  1. 1
      src/addrman.h

1
src/addrman.h

@ -455,6 +455,7 @@ public: @@ -455,6 +455,7 @@ public:
void Clear()
{
LOCK(cs);
std::vector<int>().swap(vRandom);
nKey = GetRandHash();
for (size_t bucket = 0; bucket < ADDRMAN_NEW_BUCKET_COUNT; bucket++) {

Loading…
Cancel
Save