EVP_DigestSignFinal: *siglen should not be read if sigret == NULL
authorTomas Mraz <tomas@openssl.org>
Mon, 10 Jan 2022 16:09:59 +0000 (17:09 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 12 Jan 2022 12:03:23 +0000 (13:03 +0100)
commita4e01187d3648d9ce99507097400902cf21f9b55
tree81af37dfb19f34ec6d14eef7070e1bd2dfeeb175
parenta10a576090022e583a06271ceced8e38dd509657
EVP_DigestSignFinal: *siglen should not be read if sigret == NULL

This fixes small regression from #16962.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17460)
crypto/evp/m_sigver.c