]> git.ipfire.org Git - thirdparty/openssl.git/commit
EVP: fix reference counting for digest operations.
authorPauli <ppzgs1@gmail.com>
Mon, 8 Feb 2021 00:54:52 +0000 (10:54 +1000)
committerPauli <ppzgs1@gmail.com>
Fri, 12 Feb 2021 02:28:55 +0000 (12:28 +1000)
commit31f7ff37b403f5ed50cf2e1e828a2e63576dac58
tree8f95162af10577121a5d58db64827c03c6909880
parent22040fb790c854cefb04bed98ed38ea6357daf83
EVP: fix reference counting for digest operations.

The reference count wasn't being incremented but the EVP_MD pointer was being
held.  In a no cache build, this resulted in a failure on update in some
circumstances.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14126)
crypto/evp/digest.c