]> git.ipfire.org Git - thirdparty/openssl.git/commit
sm2_sig_verify(): Do not call BN_CTX_end() without BN_CTX_start()
authorTomas Mraz <tomas@openssl.org>
Tue, 19 Nov 2024 10:09:58 +0000 (11:09 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 21 Nov 2024 10:17:53 +0000 (11:17 +0100)
commit53931e6792b68f5ff743bd200b4743702c0978d2
treea285fe707ff271af95cbeb785963671d2af5eca0
parent04da687c2b39c2e3a559d8222a1ca7dda607c4dd
sm2_sig_verify(): Do not call BN_CTX_end() without BN_CTX_start()

In case of memory allocation failure this
could happen.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/25994)

(cherry picked from commit 93bfe97c5be0ca575411b39c9dec1103caa82f51)
crypto/sm2/sm2_sign.c