engines/e_devcrypto: fixes logic in close_devcrypto
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Fri, 15 Feb 2019 17:51:59 +0000 (15:51 -0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 22 Feb 2019 08:42:56 +0000 (09:42 +0100)
commit41bffb9da082e49378ef0c027beac75399315bb9
tree9d25bc1914a3ab041c5555e06a22887f03e28284
parent91958d71aaea98854a9709a8489263c79a01addd
engines/e_devcrypto: fixes logic in close_devcrypto

Call close(cfd) before setting cfd = -1.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8213)
engines/e_devcrypto.c