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)
This commit is contained in:
Richard Levitte 2020-07-27 18:39:44 +02:00
parent 1202de4481
commit 86b5ab58aa

View File

@ -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;
}