Fix bugs in EC code introduced with FIPS changes.
authorAaron Thompson <dev@aaront.org>
Tue, 31 Mar 2020 06:47:58 +0000 (06:47 +0000)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 3 Apr 2020 08:42:14 +0000 (10:42 +0200)
commit0e8b6c97ba7ac37f5e92f6a24d128b04b5336388
treeacf5fd9484390cafd858cf460a2f04a290051386
parentec4d1b8f8ce2d2ed1c378abfeffaabfda3cc7122
Fix bugs in EC code introduced with FIPS changes.

a9612d6c034f47c4788c67d85651d0cd58c3faf7 introduced possible memory leaks in EC_GROUP_cmp and EC_POINTs_mul, and a possible BN_CTX_end without BN_CTX_start in ec_field_inverse_mod_ord.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11452)
crypto/ec/ec_lib.c