| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6da7909 commit 8ea56a9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -607,9 +607,8 @@ EnginePointer LoadEngineById(const char* id, CryptoErrorStore* errors) { | |||
| 607 | 607 | } | |
| 608 | 608 | ||
| 609 | 609 | if (!engine && errors != nullptr) { | |
| 610 | - if (ERR_get_error() != 0) { | ||
| 611 | - errors->Capture(); | ||
| 612 | - } else { | ||
| 610 | + errors->Capture(); | ||
| 611 | + if (errors->Empty()) { | ||
| 613 | 612 | errors->Insert(NodeCryptoError::ENGINE_NOT_FOUND, id); | |
| 614 | 613 | } | |
| 615 | 614 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments