We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977016a commit adbd92eCopy full SHA for adbd92e
src/crypto/crypto_util.h
@@ -550,9 +550,12 @@ struct EnginePointer {
550
551
inline void reset(ENGINE* engine_ = nullptr, bool finish_on_exit_ = false) {
552
if (engine != nullptr) {
553
- if (finish_on_exit)
554
- ENGINE_finish(engine);
555
- ENGINE_free(engine);
+ if (finish_on_exit) {
+ // This also does the equivalent of ENGINE_free.
+ CHECK_EQ(ENGINE_finish(engine), 1);
556
+ } else {
557
+ CHECK_EQ(ENGINE_free(engine), 1);
558
+ }
559
}
560
engine = engine_;
561
finish_on_exit = finish_on_exit_;
0 commit comments