]> 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:18:35 +0000 (11:18 +0100)
commitbdabd8513a8410990e7db046f31e99b9b7067654
tree27d1fac3c17322eca39df16657dd308066c06251
parentf2ae60556b45a2c0f00f8149b19d5a82a3fd4da5
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