diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 6715c154b29c99252e2fddae350e4ad7d39576b5..249ac2bd2a08e1d7fcbc7681ea85b8ae579e4005 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -161,13 +161,13 @@ int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b) if (a->type != b->type) return -1; - if (a->meth) + if (a->ameth) { int ret; /* Compare parameters if the algorithm has them */ - if (a->meth->param_cmp) + if (a->ameth->param_cmp) { - ret = a->meth->param_cmp(a, b); + ret = a->ameth->param_cmp(a, b); if (ret <= 0) return ret; }