diff options
author | Richard Levitte <levitte@openssl.org> | 2020-07-27 18:39:44 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-07-30 23:23:15 +0200 |
commit | 86b5ab58aae0bddb93a58e9dcfac5ea3db022f6a (patch) | |
tree | 4bfe0f83e7661861b1906cf70f9e4199387e7d7b | |
parent | 1202de4481df88d63a2a5cc1e9e0450a7e72f4ac (diff) |
PROV: Fix small logic error in ec_kmgmt.c matching function
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12544)
-rw-r--r-- | providers/implementations/keymgmt/ec_kmgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/keymgmt/ec_kmgmt.c b/providers/implementations/keymgmt/ec_kmgmt.c index c1114eee7f..792b2193e6 100644 --- a/providers/implementations/keymgmt/ec_kmgmt.c +++ b/providers/implementations/keymgmt/ec_kmgmt.c @@ -299,7 +299,7 @@ static int ec_match(const void *keydata1, const void *keydata2, int selection) const EC_POINT *pa = EC_KEY_get0_public_key(ec1); const EC_POINT *pb = EC_KEY_get0_public_key(ec2); - ok = ok && EC_POINT_cmp(group_b, pa, pb, NULL); + ok = ok && EC_POINT_cmp(group_b, pa, pb, NULL) == 0; } return ok; } |