diff options
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/m_sigver.c | 2 | ||||
-rw-r--r-- | crypto/evp/pmeth_lib.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c index 2eceede28c..94e37f02b2 100644 --- a/crypto/evp/m_sigver.c +++ b/crypto/evp/m_sigver.c @@ -79,7 +79,7 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, * This indicates the current algorithm requires * special treatment before hashing the tbs-message. */ - if (ctx->pctx->pmeth->digest_custom) + if (ctx->pctx->pmeth->digest_custom != NULL) return ctx->pctx->pmeth->digest_custom(ctx->pctx, ctx); return 1; diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 76405154a9..633cb8863d 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -859,6 +859,6 @@ void EVP_PKEY_meth_get_digest_custom(EVP_PKEY_METHOD *pmeth, int (**pdigest_custom) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx)) { - if (*pdigest_custom) + if (pdigest_custom != NULL) *pdigest_custom = pmeth->digest_custom; } |