Browse Source

fixed race conditin

pull/317/head
orignal 9 years ago
parent
commit
5487fad2ce
  1. 1
      Identity.cpp
  2. 1
      RouterInfo.cpp

1
Identity.cpp

@ -365,6 +365,7 @@ namespace data @@ -365,6 +365,7 @@ namespace data
void IdentityEx::DropVerifier () const
{
// TODO: potential race condition with Verify
m_Verifier = nullptr;
}

1
RouterInfo.cpp

@ -65,7 +65,6 @@ namespace data @@ -65,7 +65,6 @@ namespace data
LogPrint (eLogError, "RouterInfo: signature verification failed");
m_IsUnreachable = true;
}
m_RouterIdentity->DropVerifier ();
}
void RouterInfo::SetRouterIdentity (std::shared_ptr<const IdentityEx> identity)

Loading…
Cancel
Save