]> 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:14:17 +0000 (11:14 +0100)
commit9a1b54b937fec23876644c8752bc1cb95f89f4b6
treeea8fbb5ef2967e6ba970694938c182dade88f768
parente98395b9ccefbcf3699b63a2ab2acd7c878438e0
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