Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
crypto: fix error capture when loading engine
  • Loading branch information
tniessen committed Dec 15, 2021
commit 3fc26e24999ddfcd1001e56906bf4eac47e4a93f
5 changes: 2 additions & 3 deletions src/crypto/crypto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,8 @@ EnginePointer LoadEngineById(const char* id, CryptoErrorStore* errors) {
}

if (!engine && errors != nullptr) {
if (ERR_get_error() != 0) {
errors->Capture();
} else {
errors->Capture();
if (errors->Empty()) {
errors->Insert(NodeCryptoError::ENGINE_NOT_FOUND, id);
}
}
Expand Down