crypto/engine/eng_devcrypto.c: ensure we don't leak resources
authorRichard Levitte <levitte@openssl.org>
Fri, 2 Nov 2018 09:24:24 +0000 (10:24 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 2 Nov 2018 19:24:08 +0000 (20:24 +0100)
commitcd01707b7f7e71b6c5df013212c9b3613e9eab7c
treebf1250a61c86cf51afea7e45e8141ebfdca57e32
parent120fc33e29957864168dd3693df5992b62e58c04
crypto/engine/eng_devcrypto.c: ensure we don't leak resources

If engine building fails for some reason, we must make sure to close
the /dev/crypto handle.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/7506)

(cherry picked from commit 681e8cacdbdc44ac00af29b6656fc52745a9baa2)
crypto/engine/eng_devcrypto.c