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)
static int close_devcrypto(void)
{
static int close_devcrypto(void)
{
fprintf(stderr, "Error closing /dev/crypto: %s\n", strerror(errno));
return 0;
}
fprintf(stderr, "Error closing /dev/crypto: %s\n", strerror(errno));
return 0;
}