ec_kmgmt.c: check the return of BN_CTX_get() in time.
authorxkernel <xkernel.wang@foxmail.com>
Wed, 14 Dec 2022 16:22:40 +0000 (00:22 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Dec 2022 11:16:48 +0000 (12:16 +0100)
commit63549494c8912aecbb382b7250179b2265b9bd83
treec27a17b75693b7d1046cd4ff8aac40f2eb274bfc
parent9f78288f15b27cfc7de558f6bc0fbd8d6c1eaef9
ec_kmgmt.c: check the return of BN_CTX_get() in time.

If x and y are all NULL, then it is unnecessary to do subsequent operations.

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

(cherry picked from commit 467b0492c1e597857b30b91ed72605387aa9825b)
providers/implementations/keymgmt/ec_kmgmt.c