From: joshua Date: Mon, 25 Mar 2024 11:10:17 +0000 (+0000) Subject: Remove unneeded brackets from if statement in EVP_DigestSignFinal X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b268052c4fe7b0f03d3895e27a3f73c3ce95543d;p=openbsd Remove unneeded brackets from if statement in EVP_DigestSignFinal ok tb@ --- diff --git a/lib/libcrypto/evp/m_sigver.c b/lib/libcrypto/evp/m_sigver.c index 98afd025097..b9f77afc116 100644 --- a/lib/libcrypto/evp/m_sigver.c +++ b/lib/libcrypto/evp/m_sigver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m_sigver.c,v 1.16 2024/03/25 06:20:16 joshua Exp $ */ +/* $OpenBSD: m_sigver.c,v 1.17 2024/03/25 11:10:17 joshua Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -174,9 +174,8 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) int sctx; int r = 0; - if (pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) { + if (pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) return evp_digestsignfinal_sigctx_custom(ctx, sigret, siglen); - } if (ctx->pctx->pmeth->signctx) sctx = 1;