eng_devcrypto: fix copy of unitilialized digest
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 14 Nov 2018 15:58:06 +0000 (13:58 -0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 10 Dec 2018 12:19:26 +0000 (13:19 +0100)
commitae8183690fa53b978d4647563f5a521c4cafe94c
tree6d43c99c5e71e3599f00b13a335a88788cfe63eb
parent4d9f99654441e36fdcb49540a1dbc9d4c70ccb68
eng_devcrypto: fix copy of unitilialized digest

If the source ctx has not been initialized, don't initialize the copy
either.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7585)
crypto/engine/eng_devcrypto.c