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:21:59 +0000 (20:21 +0100)
commit681e8cacdbdc44ac00af29b6656fc52745a9baa2
tree3ae685d6c453fd2d61fb27fbe4d95413a8eb1f0e
parent458c7dad9e3f59490fb0908c1a27ca39e4cf38dd
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)
crypto/engine/eng_devcrypto.c