Skip to content

Commit

Permalink
Merge pull request softhsm#576 from opendnssec/fix-issue-573
Browse files Browse the repository at this point in the history
Fix race condition between C_FindObjects and object creation (fixes softhsm#573)
  • Loading branch information
rijswijk authored Oct 22, 2020
2 parents 9f63ccc + 4e1d1c8 commit 20a53bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/object_store/ObjectFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ void ObjectFile::refresh(bool isFirstTime /* = false */)
if (objectFile.isEmpty())
{
DEBUG_MSG("Object %s is empty", path.c_str());

valid = false;
objectFile.unlock();

return;
}
Expand Down

0 comments on commit 20a53bd

Please sign in to comment.