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:22:14 +0000 (13:22 +0100)
commit68b02a8ab798b7e916c8141a36ab69d7493fc707
tree3eea1ad8314a3669863c2d0cd51af429cdf487b4
parentadd2ab1f289c24a1563c5b895d5cd133fe874f12
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)

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